diff options
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/basename.c | 2 | ||||
-rw-r--r-- | coreutils/date.c | 2 | ||||
-rw-r--r-- | coreutils/env.c | 2 | ||||
-rw-r--r-- | coreutils/expr.c | 4 | ||||
-rw-r--r-- | coreutils/id.c | 4 |
5 files changed, 7 insertions, 7 deletions
diff --git a/coreutils/basename.c b/coreutils/basename.c index e98197dd4..b83f387c2 100644 --- a/coreutils/basename.c +++ b/coreutils/basename.c | |||
@@ -47,6 +47,6 @@ extern int basename_main(int argc, char **argv) | |||
47 | if (m>=n && strncmp(s+m-n, *argv, n)==0) | 47 | if (m>=n && strncmp(s+m-n, *argv, n)==0) |
48 | s[m-n] = '\0'; | 48 | s[m-n] = '\0'; |
49 | } | 49 | } |
50 | printf("%s\n", s); | 50 | puts(s); |
51 | return EXIT_SUCCESS; | 51 | return EXIT_SUCCESS; |
52 | } | 52 | } |
diff --git a/coreutils/date.c b/coreutils/date.c index 22a1304d5..93b078b45 100644 --- a/coreutils/date.c +++ b/coreutils/date.c | |||
@@ -241,7 +241,7 @@ int date_main(int argc, char **argv) | |||
241 | /* Print OUTPUT (after ALL that!) */ | 241 | /* Print OUTPUT (after ALL that!) */ |
242 | t_buff = xmalloc(201); | 242 | t_buff = xmalloc(201); |
243 | strftime(t_buff, 200, date_fmt, &tm_time); | 243 | strftime(t_buff, 200, date_fmt, &tm_time); |
244 | printf("%s\n", t_buff); | 244 | puts(t_buff); |
245 | 245 | ||
246 | return EXIT_SUCCESS; | 246 | return EXIT_SUCCESS; |
247 | } | 247 | } |
diff --git a/coreutils/env.c b/coreutils/env.c index 626fc1952..8bb690b72 100644 --- a/coreutils/env.c +++ b/coreutils/env.c | |||
@@ -66,7 +66,7 @@ extern int env_main(int argc, char** argv) | |||
66 | perror_msg_and_die("%s", *argv); | 66 | perror_msg_and_die("%s", *argv); |
67 | } | 67 | } |
68 | for (ep = environ; *ep; ep++) | 68 | for (ep = environ; *ep; ep++) |
69 | printf("%s\n", *ep); | 69 | puts(*ep); |
70 | return 0; | 70 | return 0; |
71 | } | 71 | } |
72 | 72 | ||
diff --git a/coreutils/expr.c b/coreutils/expr.c index 4a537bf33..d6cc82e3e 100644 --- a/coreutils/expr.c +++ b/coreutils/expr.c | |||
@@ -89,8 +89,8 @@ int expr_main (int argc, char **argv) | |||
89 | 89 | ||
90 | if (v->type == integer) | 90 | if (v->type == integer) |
91 | printf ("%d\n", v->u.i); | 91 | printf ("%d\n", v->u.i); |
92 | else | 92 | else |
93 | printf ("%s\n", v->u.s); | 93 | puts (v->u.s); |
94 | 94 | ||
95 | exit (null (v)); | 95 | exit (null (v)); |
96 | } | 96 | } |
diff --git a/coreutils/id.c b/coreutils/id.c index 3f90d55f6..85b288c0c 100644 --- a/coreutils/id.c +++ b/coreutils/id.c | |||
@@ -79,12 +79,12 @@ extern int id_main(int argc, char **argv) | |||
79 | 79 | ||
80 | if (no_group) { | 80 | if (no_group) { |
81 | if(name_not_number && user) | 81 | if(name_not_number && user) |
82 | printf("%s\n",user); | 82 | puts(user); |
83 | else | 83 | else |
84 | printf("%ld\n", pwnam); | 84 | printf("%ld\n", pwnam); |
85 | } else if (no_user) { | 85 | } else if (no_user) { |
86 | if(name_not_number && group) | 86 | if(name_not_number && group) |
87 | printf("%s\n", group); | 87 | puts(group); |
88 | else | 88 | else |
89 | printf("%ld\n", grnam); | 89 | printf("%ld\n", grnam); |
90 | } else { | 90 | } else { |