From owner-freebsd-current Tue Sep 10 17:31:18 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8BF1E37B400 for ; Tue, 10 Sep 2002 17:31:14 -0700 (PDT) Received: from dibbler.ne.client2.attbi.com (dibbler.ne.client2.attbi.com [24.61.41.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA82D43E65 for ; Tue, 10 Sep 2002 17:31:13 -0700 (PDT) (envelope-from rodrigc@attbi.com) Received: from dibbler.ne.client2.attbi.com (localhost [127.0.0.1]) by dibbler.ne.client2.attbi.com (8.12.6/8.12.5) with ESMTP id g8B0VKgr000809; Tue, 10 Sep 2002 20:31:20 -0400 (EDT) (envelope-from rodrigc@dibbler.ne.client2.attbi.com) Received: (from rodrigc@localhost) by dibbler.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id g8B0VERv000808; Tue, 10 Sep 2002 20:31:14 -0400 (EDT) Date: Tue, 10 Sep 2002 20:31:14 -0400 From: Craig Rodrigues To: walt Cc: freebsd-current@freebsd.org Subject: Re: World broken at uudecode [Sep 10] Message-ID: <20020910203114.A799@attbi.com> References: <3D7E89D3.7090000@hotmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3D7E89D3.7090000@hotmail.com>; from wa1ter@hotmail.com on Tue, Sep 10, 2002 at 05:09:55PM -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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