diff options
author | Eric Jackson <ericj@cvs.openbsd.org> | 2002-01-07 19:38:29 +0000 |
---|---|---|
committer | Eric Jackson <ericj@cvs.openbsd.org> | 2002-01-07 19:38:29 +0000 |
commit | 04444d2addb887766699cd03936bf9712aa8d11e (patch) | |
tree | c3297074beca9d0bd9cad9e5a2d2fb3dbc18e873 /sbin/modload | |
parent | 2be85d9a881f8c466b1db30b467cc0560874293f (diff) |
u_long for arg for LMREADY
Diffstat (limited to 'sbin/modload')
-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; |