]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
nscd/cachedumper.c : fix whitespace
authorDJ Delorie <dj@redhat.com>
Tue, 17 Mar 2020 18:03:43 +0000 (14:03 -0400)
committerDJ Delorie <dj@redhat.com>
Tue, 17 Mar 2020 18:03:43 +0000 (14:03 -0400)
nscd/cachedumper.c

index 4c314e0099bb3d4df3be397723a44f2e363d8c5a..9b47d5e670b51b7e533a9c1f861b3b47e21e9ffb 100644 (file)
@@ -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);