aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/ls.c4
-rw-r--r--coreutils/od_bloaty.c2
-rw-r--r--coreutils/sort.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index 960c161b0..ae28f6420 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -291,7 +291,7 @@ static void dfree(struct dnode **dnp, int nfiles)
291 free(dnp); /* free the array holding the dnode pointers */ 291 free(dnp); /* free the array holding the dnode pointers */
292} 292}
293#else 293#else
294#define dfree(...) do {} while(0) 294#define dfree(...) do {} while (0)
295#endif 295#endif
296 296
297static struct dnode **splitdnarray(struct dnode **dn, int nfiles, int which) 297static struct dnode **splitdnarray(struct dnode **dn, int nfiles, int which)
@@ -375,7 +375,7 @@ static void dnsort(struct dnode **dn, int size)
375 qsort(dn, size, sizeof(*dn), sortcmp); 375 qsort(dn, size, sizeof(*dn), sortcmp);
376} 376}
377#else 377#else
378#define dnsort(dn, size) do {} while(0) 378#define dnsort(dn, size) do {} while (0)
379#endif 379#endif
380 380
381 381
diff --git a/coreutils/od_bloaty.c b/coreutils/od_bloaty.c
index bd9f92536..6ae0e046b 100644
--- a/coreutils/od_bloaty.c
+++ b/coreutils/od_bloaty.c
@@ -490,7 +490,7 @@ print_ascii(size_t n_bytes, const char *block,
490static void 490static void
491open_next_file(void) 491open_next_file(void)
492{ 492{
493 while(1) { 493 while (1) {
494 input_filename = *file_list; 494 input_filename = *file_list;
495 if (!input_filename) 495 if (!input_filename)
496 return; 496 return;
diff --git a/coreutils/sort.c b/coreutils/sort.c
index c37810f1a..f2152c0a0 100644
--- a/coreutils/sort.c
+++ b/coreutils/sort.c
@@ -163,7 +163,7 @@ static int compare_keys(const void *xarg, const void *yarg)
163 y = get_key(*(char **)yarg, key, flags); 163 y = get_key(*(char **)yarg, key, flags);
164#else 164#else
165 /* This curly bracket serves no purpose but to match the nesting 165 /* This curly bracket serves no purpose but to match the nesting
166 level of the for() loop we're not using */ 166 level of the for () loop we're not using */
167 { 167 {
168 x = *(char **)xarg; 168 x = *(char **)xarg;
169 y = *(char **)yarg; 169 y = *(char **)yarg;
@@ -231,7 +231,7 @@ static int compare_keys(const void *xarg, const void *yarg)
231 /* Free key copies. */ 231 /* Free key copies. */
232 if (x != *(char **)xarg) free(x); 232 if (x != *(char **)xarg) free(x);
233 if (y != *(char **)yarg) free(y); 233 if (y != *(char **)yarg) free(y);
234 /* if (retval) break; - done by for() anyway */ 234 /* if (retval) break; - done by for () anyway */
235#else 235#else
236 /* Integer version of -n for tiny systems */ 236 /* Integer version of -n for tiny systems */
237 case FLAG_n: 237 case FLAG_n: