From cbd156990489568eb8c1b97ace3ad24fc784e049 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Tue, 17 Mar 2020 14:03:43 -0400 Subject: nscd/cachedumper.c : fix whitespace --- nscd/cachedumper.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nscd') diff --git a/nscd/cachedumper.c b/nscd/cachedumper.c index 4c314e0099..9b47d5e670 100644 --- a/nscd/cachedumper.c +++ b/nscd/cachedumper.c @@ -33,7 +33,7 @@ static void *the_cache; -#define NO_REF ((ref_t)-1) +#define NO_REF ((ref_t) -1) /* Given a chunk of raw data CP of length LEN, print it in a hopefully user-readable format, including colorizing non-readable characters. @@ -82,10 +82,10 @@ nscd_print_cache (const char *name) /* Shortcut for "print the cache offset (address) of X in the cache". */ -#define A(x) (int)((char *)&(x)-(char *)the_cache) +#define A(x) (int) ((char *) &(x) - (char *) the_cache) /* Common code for "print field DPS->F, it's offset, and contents". */ -#define DPS(f) printf("%08x: %24s : %10d %08x\n", A (dps->f), #f, (int)dps->f, (int)dps->f); +#define DPS(f) printf("%08x: %24s : %10d %08x\n", A (dps->f), #f, (int) dps->f, (int) dps->f); if (debug_level > 0) { @@ -144,7 +144,7 @@ nscd_print_cache (const char *name) if (debug_level > 0) { /* Common code for printing fields in struct DATAHEAD DH. */ -#define DH(f) printf ("%08x; %24s : %10d %08x\n", A (dh->f), #f, (int)dh->f, (int)dh->f); +#define DH(f) printf ("%08x; %24s : %10d %08x\n", A (dh->f), #f, (int) dh->f, (int) dh->f); DH (allocsize); DH (recsize); DH (timeout); -- cgit 1.4.1