Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Sep 2002 20:31:14 -0400
From:      Craig Rodrigues <rodrigc@attbi.com>
To:        walt <wa1ter@hotmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: World broken at uudecode [Sep 10]
Message-ID:  <20020910203114.A799@attbi.com>
In-Reply-To: <3D7E89D3.7090000@hotmail.com>; from wa1ter@hotmail.com on Tue, Sep 10, 2002 at 05:09:55PM -0700
References:  <3D7E89D3.7090000@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 10, 2002 at 05:09:55PM -0700, walt wrote:
> cc -O -pipe -mcpu=pentiumpro   -Werror -Wall -Wno-format-y2k -W -Wstrict-prototypes 
> -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch 
> -Wshadow -Wcast-align -Wno-uninitialized  -c /usr/src/usr.bin/uudecode/uudecode.c
> cc1: warnings being treated as errors
> /usr/src/usr.bin/uudecode/uudecode.c: In function `decode2':
> /usr/src/usr.bin/uudecode/uudecode.c:225: warning: comparison between signed and unsigned
> /usr/src/usr.bin/uudecode/uudecode.c:275: syntax error before "ch"
> /usr/src/usr.bin/uudecode/uudecode.c:286: syntax error before "ch"
> /usr/src/usr.bin/uudecode/uudecode.c:294: syntax error before "ch"
> /usr/src/usr.bin/uudecode/uudecode.c:301: syntax error before "ch"
> *** Error code 1


Try this patch:


--- uudecode.c.orig	Tue Sep 10 20:26:48 2002
+++ uudecode.c	Tue Sep 10 20:29:44 2002
@@ -153,7 +153,7 @@
 decode2(void)
 {
 	int base64;
-	int n;
+	size_t n;
 	char ch, *p, *q;
 	void *mode;
 	struct passwd *pw;
@@ -258,7 +258,7 @@
 	warnx("%s: %s: character out of range: [%d-%d]",		\
 	    filename, buffn, 1 + ' ', 077 + ' ' + 1);			\
         return (1);							\
-} while (0)
+} while (0);
 
 		/*
 		 * `n' is used to avoid writing out all the characters










-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@attbi.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020910203114.A799>