From e2954565f3b9ba111240f71dbc15176fdd372ba0 Mon Sep 17 00:00:00 2001 From: Philippe Charnier Date: Wed, 24 Sep 1997 06:44:12 +0000 Subject: [PATCH] Statisize usage(). Add return(0) for -wall. --- usr.sbin/kvm_mkdb/kvm_mkdb.8 | 2 +- usr.sbin/kvm_mkdb/kvm_mkdb.c | 8 ++++++-- usr.sbin/kvm_mkdb/nlist.c | 7 ++++--- usr.sbin/kvm_mkdb/testdb.c | 4 ++++ 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/usr.sbin/kvm_mkdb/kvm_mkdb.8 b/usr.sbin/kvm_mkdb/kvm_mkdb.8 index b409159eda96..0bfcbea0f99d 100644 --- a/usr.sbin/kvm_mkdb/kvm_mkdb.8 +++ b/usr.sbin/kvm_mkdb/kvm_mkdb.8 @@ -65,6 +65,6 @@ information about the current system. .Xr kvm_nlist 3 .Sh HISTORY The -.Nm kvm_mkdb +.Nm utility first appeared in .Bx 4.4 . diff --git a/usr.sbin/kvm_mkdb/kvm_mkdb.c b/usr.sbin/kvm_mkdb/kvm_mkdb.c index b842d1ea1f97..0284c55d41c0 100644 --- a/usr.sbin/kvm_mkdb/kvm_mkdb.c +++ b/usr.sbin/kvm_mkdb/kvm_mkdb.c @@ -32,13 +32,17 @@ */ #ifndef lint -static char copyright[] = +static const char copyright[] = "@(#) Copyright (c) 1990, 1993\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ #ifndef lint +#if 0 static char sccsid[] = "@(#)kvm_mkdb.c 8.3 (Berkeley) 5/4/95"; +#endif +static const char rcsid[] = + "$Id$"; #endif /* not lint */ #include @@ -114,7 +118,7 @@ main(argc, argv) exit(0); } -void +static void usage() { (void)fprintf(stderr, "usage: kvm_mkdb [file]\n"); diff --git a/usr.sbin/kvm_mkdb/nlist.c b/usr.sbin/kvm_mkdb/nlist.c index 946fbfa4348e..954742ace6b0 100644 --- a/usr.sbin/kvm_mkdb/nlist.c +++ b/usr.sbin/kvm_mkdb/nlist.c @@ -33,10 +33,10 @@ #ifndef lint #if 0 -static char sccsid[] = "from: @(#)nlist.c 8.1 (Berkeley) 6/6/93"; -#else -static char *rcsid = "$Id$"; +static char sccsid[] = "@(#)from: nlist.c 8.1 (Berkeley) 6/6/93"; #endif +static const char rcsid[] = + "$Id$"; #endif /* not lint */ #include @@ -172,6 +172,7 @@ __aout_knlist(name, db) data.size = sizeof(NLIST); } } + return(0); } diff --git a/usr.sbin/kvm_mkdb/testdb.c b/usr.sbin/kvm_mkdb/testdb.c index fe4581e76e65..8d769bdad1be 100644 --- a/usr.sbin/kvm_mkdb/testdb.c +++ b/usr.sbin/kvm_mkdb/testdb.c @@ -32,7 +32,11 @@ */ #ifndef lint +#if 0 static char sccsid[] = "@(#)testdb.c 8.1 (Berkeley) 6/6/93"; +#endif +static const char rcsid[] = + "$Id$"; #endif /* not lint */ #include