Thu May 9 01:24:00 1996 Ulrich Drepper <drepper@cygnus.com>
authorroland <roland>
Thu, 9 May 1996 00:09:22 +0000 (00:09 +0000)
committerroland <roland>
Thu, 9 May 1996 00:09:22 +0000 (00:09 +0000)
* resolv/gethnamaddr.c: Prevent warning by preventing variable
definition.
* stdio-common/_itoa.c: Ditto.

resolv/gethnamaddr.c
stdio-common/_itoa.c

index 87b4db1..41be4fc 100644 (file)
@@ -397,9 +397,12 @@ struct hostent *
 gethostbyname(name)
        const char *name;
 {
+  /* Moved #if line to here because declararing HP would lead to a
+     warining.  --drepper@gnu  */
+#if defined(AF_INET6) && defined(RES_TRY_INET6)
        struct hostent *hp;
 
-#if defined(AF_INET6) && defined(RES_TRY_INET6)
+/* #if defined(AF_INET6) && defined(RES_TRY_INET6) */
        if (_res.options & RES_TRY_INET6) {
                hp = gethostbyname2(name, AF_INET6);
                if (hp)
index f85b15b..9d77b39 100644 (file)
@@ -260,9 +260,11 @@ _itoa (value, buflim, base, upper_case)
           Optimize for frequent cases of 32 bit numbers.  */
        if ((mp_limb_t) (value >> 32) >= 1)
          {
+#if UDIV_TIME > 2 * UMUL_TIME || UDIV_NEEDS_NORMALIZATION
            int big_normalization_steps = brec->big.normalization_steps;
-           mp_limb_t big_base_norm = brec->big.base << big_normalization_steps;
-
+           mp_limb_t big_base_norm
+             = brec->big.base << big_normalization_steps;
+#endif
            if ((mp_limb_t) (value >> 32) >= brec->big.base)
              {
                mp_limb_t x1hi, x1lo, r;