cvs commit: src/sys/kern vfs_export.c

Doug White dwhite at gumbysoft.com
Sun Nov 28 20:54:19 PST 2004


On Sun, 28 Nov 2004, Colin Percival wrote:

> cperciva    2004-11-28 19:16:00 UTC
>
>   FreeBSD src repository
>
>   Modified files:
>     sys/kern             vfs_export.c
>   Log:
>   Check that saddr->sa_family is a sensible value before using it.
>
>   Reported by:    Bryan Fulton and Ted Unangst, Coverity, Inc.
>   Found by:       The SWAT analysis tool

This does not compile (on sparc64 at least):

cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -I.
-I/a/src/sys -I/a/src/sys/contrib/dev/acpica -I/a/src/sys/contrib/altq
-I/a/src/sys/contrib/ipfilter -I/a/src/sys/contrib/pf
-I/a/src/sys/contrib/dev/ath -I/a/src/sys/contrib/dev/ath/freebsd
-I/a/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common
-finline-limit=15000 --param inline-unit-growth=100 --param
large-function-growth=1000  -mcmodel=medlow -msoft-float -ffreestanding
-Werror  /a/src/sys/kern/vfs_export.c
/a/src/sys/kern/vfs_export.c: In function `vfs_hang_addrlist':
/a/src/sys/kern/vfs_export.c:132: error: `SA_MAX' undeclared (first use in
this function)
/a/src/sys/kern/vfs_export.c:132: error: (Each undeclared identifier is
reported only once
/a/src/sys/kern/vfs_export.c:132: error: for each function it appears in.)

I can't find a reference to an SA_MAX constant. Did you mean AF_MAX?

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite at gumbysoft.com          |  www.FreeBSD.org


More information about the cvs-src mailing list