Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.c

by Larry Doolittle.
This commit is contained in:
Matt Kraai
2001-05-16 14:21:09 +00:00
parent bc604a2f41
commit 59df6f7398
22 changed files with 36 additions and 36 deletions

View File

@@ -416,7 +416,7 @@ static int builtin_pwd(struct child_prog *dummy)
cwd = xgetcwd((char *)cwd);
if (!cwd)
cwd = unknown;
printf( "%s\n", cwd);
puts(cwd);
return EXIT_SUCCESS;
}
@@ -429,7 +429,7 @@ static int builtin_export(struct child_prog *child)
if (v == NULL) {
char **e;
for (e = environ; *e; e++) {
printf( "%s\n", *e);
puts(*e);
}
return 0;
}