estream: Avoid printing leading zeroes by %p on 32 bit systems.
authorWerner Koch <wk@gnupg.org>
Tue, 31 Jan 2012 14:29:30 +0000 (15:29 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 31 Jan 2012 14:29:30 +0000 (15:29 +0100)
* common/estream-printf.c (pr_pointer): Synchronize definition of
AULONG with its use.

common/estream-printf.c

index 54ecb23..a5f3a69 100644 (file)
@@ -1180,7 +1180,7 @@ pr_pointer (estream_printf_out_t outfnc, void *outfncarg,
             argspec_t arg, value_t value, size_t *nbytes)
 {
   int rc;
-#ifdef HAVE_LONG_LONG_INT
+#if defined(HAVE_LONG_LONG_INT) && (SIZEOF_UNSIGNED_LONG < SIZEOF_VOID_P)
   unsigned long long aulong;
 #else
   unsigned long aulong;