Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jul 2001 17:20:08 -0400 (EDT)
From:      Mike Barcroft <mike@q9media.com>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        audit@freebsd.org
Subject:   Re: fetch(1) const/static cleanup
Message-ID:  <200107082120.f68LK8q17541@coffee.q9media.com>

next in thread | raw e-mail | index | archive | help
Dag-Erling Smorgrav <des@ofug.org> writes:
> Could somebody please test the attached patch on an Alpha?  It
> staticicizes all the functions in fetch(1) except main(), constifies a
> bunch of strings, and replaces the CFLAGS spammage with WARNS?=2.

cc -O -pipe -mcpu=ev4   -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wno-uninitialized -Werror -Wreturn-type -Wcast-qual
-Wwrite-strings -Wswitch -Wshadow  -c fetch.c
cc1: warnings being treated as errors
fetch.c: In function `stat_display':
fetch.c:131: warning: long long int format, off_t arg (arg 3)
fetch.c:134: warning: long long int format, off_t arg (arg 3)
fetch.c: In function `stat_end':
fetch.c:173: warning: long long int format, off_t arg (arg 3)
fetch.c: In function `fetch':
fetch.c:301: warning: long long int format, off_t arg (arg 2)
fetch.c:340: warning: long long int format, off_t arg (arg 3)
fetch.c:340: warning: long long int format, off_t arg (arg 4)
fetch.c:359: warning: long long int format, off_t arg (arg 3)
fetch.c:362: warning: long long int format, off_t arg (arg 3)
fetch.c:395: warning: long long int format, off_t arg (arg 3)
fetch.c:395: warning: long long int format, off_t arg (arg 4)
fetch.c:440: warning: comparison between signed and unsigned
fetch.c:512: warning: long long int format, off_t arg (arg 3)
fetch.c:512: warning: long long int format, off_t arg (arg 4)
*** Error code 1



Best regards,
Mike Barcroft

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




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