diff options
author | 2002-01-07 19:38:28 +0000 | |
---|---|---|
committer | 2002-01-07 19:38:28 +0000 | |
commit | 877655b74bfe8bda8408e7eef4b81441d3ff9ca2 (patch) | |
tree | c04789f7a82b28f0e7d5456caa1fd110b8041067 | |
parent | first pass cleanup for lkms (diff) | |
download | wireguard-openbsd-877655b74bfe8bda8408e7eef4b81441d3ff9ca2.tar.xz wireguard-openbsd-877655b74bfe8bda8408e7eef4b81441d3ff9ca2.zip |
u_long for arg for LMREADY
-rw-r--r-- | sbin/modload/modload.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/sbin/modload/modload.c b/sbin/modload/modload.c index 847d9f4b2af..ee634bebeba 100644 --- a/sbin/modload/modload.c +++ b/sbin/modload/modload.c @@ -1,4 +1,4 @@ -/* $OpenBSD: modload.c,v 1.27 2001/09/17 11:45:20 assar Exp $ */ +/* $OpenBSD: modload.c,v 1.28 2002/01/07 19:38:28 ericj Exp $ */ /* $NetBSD: modload.c,v 1.13 1995/05/28 05:21:58 jtc Exp $ */ /* @@ -123,7 +123,7 @@ linkcmd(kernel, entry, outfile, address, object) errx(1, "%s: return code %d", _PATH_LD, WEXITSTATUS(status)); } -void +static void usage() { @@ -182,8 +182,8 @@ main(argc, argv) char *entry = NULL, *post = NULL, *out = NULL, *modobj, *p; struct exec info_buf; struct stat stb; - u_int modsize; /* XXX */ - u_int modentry; /* XXX */ + u_int modsize; /* XXX */ + u_long modentry; /* XXX */ int strtablen, c; struct lmc_loadbuf ldbuf; int sz, bytesleft, old = 0; @@ -218,11 +218,8 @@ main(argc, argv) case 's': symtab = 0; break; - case '?': - usage(); default: - printf("default!\n"); - break; + usage(); } } argc -= optind; |