Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Nov 2000 02:39:44 +0000
From:      Tony Finch <dot@dotat.at>
To:        freebsd-stable@freebsd.org
Subject:   [PATCH] LINT breakage
Message-ID:  <20001103023944.L19089@hand.dotat.at>

next in thread | raw e-mail | index | archive | help
I started cvsup at Thu Nov 2 21:49:58 UTC 2000

cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi -g -nostdinc -I- -I. -I/FreeBSD/releng4/sys -I/FreeBSD/releng4/sys/../include  -D_KERNEL -include opt_global.h -elf -fno-builtin -mpreferred-stack-boundary=2  /FreeBSD/releng4/sys/net/if_fddisubr.c
/FreeBSD/releng4/sys/net/if_fddisubr.c: In function `fddi_resolvemulti':
/FreeBSD/releng4/sys/net/if_fddisubr.c:607: warning: implicit declaration of function `MALLOC'
/FreeBSD/releng4/sys/net/if_fddisubr.c:607: syntax error before `struct'
/FreeBSD/releng4/sys/net/if_fddisubr.c:636: syntax error before `struct'
/FreeBSD/releng4/sys/net/if_fddisubr.c:583: warning: `sdl' might be used uninitialized in this function
*** Error code 1

Stop in /FreeBSD/obj/FreeBSD/releng4/sys/LINT.
*** Error code 1

Stop in /FreeBSD/releng4.
*** Error code 1

Stop in /FreeBSD/releng4.


A fix is:

Index: if_fddisubr.c
===================================================================
RCS file: /home/ncvs/src/sys/net/if_fddisubr.c,v
retrieving revision 1.41.2.3
diff -u -r1.41.2.3 if_fddisubr.c
--- if_fddisubr.c       2000/11/01 17:21:09     1.41.2.3
+++ if_fddisubr.c       2000/11/03 02:38:10
@@ -43,6 +43,7 @@
 
 #include <sys/param.h>
 #include <sys/systm.h>
+#include <sys/malloc.h>
 #include <sys/mbuf.h>
 #include <sys/socket.h>
 

This depends on <sys/param.h> including <sys/types.h> so I'm not sure
if it passes bdelint.

Tony.
-- 
en oeccget g mtcaa    f.a.n.finch
v spdlkishrhtewe y    dot@dotat.at
eatp o v eiti i d.    fanf@covalent.net


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




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