diff options
author | wollman <wollman@FreeBSD.org> | 1994-08-18 22:36:09 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-08-18 22:36:09 +0000 |
commit | f9fc827448679cf1d41e56512c34521bf06ce37a (patch) | |
tree | 6b83fdf6eb5926c2f3d175a83d24bf5a2611a012 /sys/kern/kern_xxx.c | |
parent | 44fc281f480837836035856eb0af25443f0d2146 (diff) | |
download | FreeBSD-src-f9fc827448679cf1d41e56512c34521bf06ce37a.zip FreeBSD-src-f9fc827448679cf1d41e56512c34521bf06ce37a.tar.gz |
Fix up some sloppy coding practices:
- Delete redundant declarations.
- Add -Wredundant-declarations to Makefile.i386 so they don't come back.
- Delete sloppy COMMON-style declarations of uninitialized data in
header files.
- Add a few prototypes.
- Clean up warnings resulting from the above.
NB: ioconf.c will still generate a redundant-declaration warning, which
is unavoidable unless somebody volunteers to make `config' smarter.
Diffstat (limited to 'sys/kern/kern_xxx.c')
-rw-r--r-- | sys/kern/kern_xxx.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/kern/kern_xxx.c b/sys/kern/kern_xxx.c index 8f9b72b..216c750 100644 --- a/sys/kern/kern_xxx.c +++ b/sys/kern/kern_xxx.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)kern_xxx.c 8.2 (Berkeley) 11/14/93 - * $Id: kern_xxx.c,v 1.3 1994/08/02 07:42:23 davidg Exp $ + * $Id: kern_xxx.c,v 1.4 1994/08/08 00:30:04 wollman Exp $ */ #include <sys/param.h> @@ -43,9 +43,6 @@ #include <sys/sysctl.h> #include <sys/utsname.h> -extern char domainname[MAXHOSTNAMELEN]; -extern int domainnamelen; - struct reboot_args { int opt; }; @@ -103,8 +100,6 @@ osethostname(p, uap, retval) return (kern_sysctl(&name, 1, 0, 0, uap->hostname, uap->len)); } -extern long hostid; - struct gethostid_args { int dummy; }; |