envz_add.3, wordexp.3: wsfix

This commit is contained in:
Michael Kerrisk 2008-12-05 10:36:58 -05:00
parent 5e4dc2691b
commit 22a33e86af
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ main(int argc, char *argv[], char *envp[])
int i, e_len = 0;
char *str;
for (i=0; envp[i] != NULL; i++)
for (i = 0; envp[i] != NULL; i++)
e_len += strlen(envp[i]) + 1;
str = envz_entry(*envp, e_len, "HOME");

View File

@ -203,7 +203,7 @@ main(int argc, char **argv)
wordexp("[a-c]*.c", &p, 0);
w = p.we_wordv;
for (i=0; i < p.we_wordc; i++)
for (i = 0; i < p.we_wordc; i++)
printf("%s\en", w[i]);
wordfree(&p);
exit(EXIT_SUCCESS);