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

common/estream-printf.c

index 797f9aa..848ff03 100644 (file)
@@ -1231,7 +1231,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;