From 21cdfb1560a341909ae6a7188c120d1fc3c954da Mon Sep 17 00:00:00 2001 From: danw Date: Mon, 10 Aug 1998 17:54:58 +0000 Subject: [PATCH] add parens to make operator precedence work right, and pacify gcc --- util/gdss/lib/rgdss.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/util/gdss/lib/rgdss.c b/util/gdss/lib/rgdss.c index a05a4fc0..27389248 100644 --- a/util/gdss/lib/rgdss.c +++ b/util/gdss/lib/rgdss.c @@ -140,7 +140,8 @@ RSAKeyStorage *key; unsigned int *the_time; unsigned char *rawsig; { - unsigned char *cp, *ip; + unsigned char *cp; + char *ip; register int i; int status; int siglen; @@ -160,12 +161,12 @@ unsigned char *rawsig; for (i = 0; i < 16; i++) *cp++ = hash[i]; if (*cp++ != 0x44) return (GDSS_E_BVERSION); /* Bad Version */ - ip = (unsigned char *) name; - while (*ip++ = *cp++ && ip < name + ANAME_SZ); - ip = (unsigned char *) instance; - while (*ip++ = *cp++ && ip < instance + INST_SZ); - ip = (unsigned char *) realm; - while (*ip++ = *cp++ && ip < realm + REALM_SZ); + ip = name; + while ((*ip++ = *cp++) && (ip < name + ANAME_SZ)); + ip = instance; + while ((*ip++ = *cp++) && (ip < instance + INST_SZ)); + ip = realm; + while ((*ip++ = *cp++) && (ip < realm + REALM_SZ)); *the_time = 0; *the_time |= *cp++ << 24; *the_time |= *cp++ << 16; -- 2.45.2