diff options
author | Denis Vlasenko | 2006-12-26 10:42:51 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-12-26 10:42:51 +0000 |
commit | bf0a201008671f81c107de72c026b1b84967561d (patch) | |
tree | af74820b70fa27929fe218c95822c20651b60637 /coreutils | |
parent | 5dd7ef0f37373e397a7160cb431a32ae57f9f7d9 (diff) | |
download | busybox-bf0a201008671f81c107de72c026b1b84967561d.zip busybox-bf0a201008671f81c107de72c026b1b84967561d.tar.gz |
style fixes
last xcalloc replaced by xzalloc
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/ls.c | 4 | ||||
-rw-r--r-- | coreutils/od_bloaty.c | 2 | ||||
-rw-r--r-- | coreutils/sort.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c index 960c161..ae28f64 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c @@ -291,7 +291,7 @@ static void dfree(struct dnode **dnp, int nfiles) free(dnp); /* free the array holding the dnode pointers */ } #else -#define dfree(...) do {} while(0) +#define dfree(...) do {} while (0) #endif static struct dnode **splitdnarray(struct dnode **dn, int nfiles, int which) @@ -375,7 +375,7 @@ static void dnsort(struct dnode **dn, int size) qsort(dn, size, sizeof(*dn), sortcmp); } #else -#define dnsort(dn, size) do {} while(0) +#define dnsort(dn, size) do {} while (0) #endif diff --git a/coreutils/od_bloaty.c b/coreutils/od_bloaty.c index bd9f925..6ae0e04 100644 --- a/coreutils/od_bloaty.c +++ b/coreutils/od_bloaty.c @@ -490,7 +490,7 @@ print_ascii(size_t n_bytes, const char *block, static void open_next_file(void) { - while(1) { + while (1) { input_filename = *file_list; if (!input_filename) return; diff --git a/coreutils/sort.c b/coreutils/sort.c index c37810f..f2152c0 100644 --- a/coreutils/sort.c +++ b/coreutils/sort.c @@ -163,7 +163,7 @@ static int compare_keys(const void *xarg, const void *yarg) y = get_key(*(char **)yarg, key, flags); #else /* This curly bracket serves no purpose but to match the nesting - level of the for() loop we're not using */ + level of the for () loop we're not using */ { x = *(char **)xarg; y = *(char **)yarg; @@ -231,7 +231,7 @@ static int compare_keys(const void *xarg, const void *yarg) /* Free key copies. */ if (x != *(char **)xarg) free(x); if (y != *(char **)yarg) free(y); - /* if (retval) break; - done by for() anyway */ + /* if (retval) break; - done by for () anyway */ #else /* Integer version of -n for tiny systems */ case FLAG_n: |