style fixes
last xcalloc replaced by xzalloc
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user