summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/basename.c2
-rw-r--r--coreutils/date.c2
-rw-r--r--coreutils/env.c2
-rw-r--r--coreutils/expr.c4
-rw-r--r--coreutils/id.c4
5 files changed, 7 insertions, 7 deletions
diff --git a/coreutils/basename.c b/coreutils/basename.c
index e98197d..b83f387 100644
--- a/coreutils/basename.c
+++ b/coreutils/basename.c
@@ -47,6 +47,6 @@ extern int basename_main(int argc, char **argv)
if (m>=n && strncmp(s+m-n, *argv, n)==0)
s[m-n] = '\0';
}
- printf("%s\n", s);
+ puts(s);
return EXIT_SUCCESS;
}
diff --git a/coreutils/date.c b/coreutils/date.c
index 22a1304..93b078b 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -241,7 +241,7 @@ int date_main(int argc, char **argv)
/* Print OUTPUT (after ALL that!) */
t_buff = xmalloc(201);
strftime(t_buff, 200, date_fmt, &tm_time);
- printf("%s\n", t_buff);
+ puts(t_buff);
return EXIT_SUCCESS;
}
diff --git a/coreutils/env.c b/coreutils/env.c
index 626fc19..8bb690b 100644
--- a/coreutils/env.c
+++ b/coreutils/env.c
@@ -66,7 +66,7 @@ extern int env_main(int argc, char** argv)
perror_msg_and_die("%s", *argv);
}
for (ep = environ; *ep; ep++)
- printf("%s\n", *ep);
+ puts(*ep);
return 0;
}
diff --git a/coreutils/expr.c b/coreutils/expr.c
index 4a537bf..d6cc82e 100644
--- a/coreutils/expr.c
+++ b/coreutils/expr.c
@@ -89,8 +89,8 @@ int expr_main (int argc, char **argv)
if (v->type == integer)
printf ("%d\n", v->u.i);
- else
- printf ("%s\n", v->u.s);
+ else
+ puts (v->u.s);
exit (null (v));
}
diff --git a/coreutils/id.c b/coreutils/id.c
index 3f90d55..85b288c 100644
--- a/coreutils/id.c
+++ b/coreutils/id.c
@@ -79,12 +79,12 @@ extern int id_main(int argc, char **argv)
if (no_group) {
if(name_not_number && user)
- printf("%s\n",user);
+ puts(user);
else
printf("%ld\n", pwnam);
} else if (no_user) {
if(name_not_number && group)
- printf("%s\n", group);
+ puts(group);
else
printf("%ld\n", grnam);
} else {