summaryrefslogtreecommitdiffstats
path: root/sbin/kldunload
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>1997-10-19 11:15:45 +0000
committerjmg <jmg@FreeBSD.org>1997-10-19 11:15:45 +0000
commit075da1dbb990ca02802b89d73266b82c6c776b11 (patch)
treeedfa02a1745e2182653df33aba56af68d6520ed6 /sbin/kldunload
parent804107bc406012014ee4aa55efc2e153232e6eac (diff)
downloadFreeBSD-src-075da1dbb990ca02802b89d73266b82c6c776b11.zip
FreeBSD-src-075da1dbb990ca02802b89d73266b82c6c776b11.tar.gz
activate the programs that will be used to manipulate kld modules
fix a few problems with missing headers, warn called with an exit value, and undeclared getopt vars these programs now compile -Wall clean (and yes, I know I should use more than just -Wall) :)
Diffstat (limited to 'sbin/kldunload')
-rw-r--r--sbin/kldunload/Makefile4
-rw-r--r--sbin/kldunload/kldunload.c7
2 files changed, 9 insertions, 2 deletions
diff --git a/sbin/kldunload/Makefile b/sbin/kldunload/Makefile
index 7f7fffb..faf372f 100644
--- a/sbin/kldunload/Makefile
+++ b/sbin/kldunload/Makefile
@@ -23,11 +23,13 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
-# $Id$
+# $Id: Makefile,v 1.1 1997/05/07 18:19:54 dfr Exp $
#
PROG= kldunload
SRCS= kldunload.c
MAN8= kldunload.8
+CFLAGS= -I${.CURDIR}/../../sys
+
.include <bsd.prog.mk>
diff --git a/sbin/kldunload/kldunload.c b/sbin/kldunload/kldunload.c
index 5f94ef9..fec453e 100644
--- a/sbin/kldunload/kldunload.c
+++ b/sbin/kldunload/kldunload.c
@@ -23,14 +23,19 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: kldunload.c,v 1.1 1997/05/07 18:19:54 dfr Exp $
*/
+#include <err.h>
#include <stdio.h>
+#include <stdlib.h>
#include <unistd.h>
#include <sys/param.h>
#include <sys/linker.h>
+extern char *optarg;
+extern int optind;
+
static char* progname;
static void usage()
OpenPOWER on IntegriCloud