From 5ca33118ee381fe2484a9244aab71efe5cfdd924 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Mon, 9 Jul 2001 06:57:45 +0000 Subject: a first pass at -Wall --- src/lib/libc/stdlib/strtod.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/lib/libc/stdlib/strtod.c') diff --git a/src/lib/libc/stdlib/strtod.c b/src/lib/libc/stdlib/strtod.c index 9067934da0..44cc369b16 100644 --- a/src/lib/libc/stdlib/strtod.c +++ b/src/lib/libc/stdlib/strtod.c @@ -90,7 +90,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: strtod.c,v 1.13 2000/04/30 04:58:22 bjc Exp $"; +static char *rcsid = "$OpenBSD: strtod.c,v 1.14 2001/07/09 06:57:45 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \ @@ -395,7 +395,7 @@ Balloc int x; Bigint *rv; - if (rv = freelist[k]) { + if ((rv = freelist[k])) { freelist[k] = rv->next; } else { @@ -643,7 +643,7 @@ mult xc0 = c->x; #ifdef Pack_32 for(; xb < xbe; xb++, xc0++) { - if (y = *xb & 0xffff) { + if ((y = *xb & 0xffff)) { x = xa; xc = xc0; carry = 0; @@ -657,7 +657,7 @@ mult while(x < xae); *xc = carry; } - if (y = *xb >> 16) { + if ((y = *xb >> 16)) { x = xa; xc = xc0; carry = 0; @@ -708,7 +708,7 @@ pow5mult int i; static int p05[3] = { 5, 25, 125 }; - if (i = k & 3) + if ((i = k & 3)) b = multadd(b, p05[i-1], 0); if (!(k >>= 2)) @@ -771,7 +771,7 @@ lshift z = *x++ >> k1; } while(x < xe); - if (*x1 = z) + if ((*x1 = z)) ++n1; } #else -- cgit v1.2.3-55-g6feb