diff options
author | wkoszek <wkoszek@FreeBSD.org> | 2010-01-18 23:09:07 +0000 |
---|---|---|
committer | wkoszek <wkoszek@FreeBSD.org> | 2010-01-18 23:09:07 +0000 |
commit | 202bd73aeafc8c3afb5735d03a398aa7f1a2e08a (patch) | |
tree | b01c0cbc31ea0f066475c47da9c202e5382d3922 /share/examples | |
parent | b9d7576304d8e5c4bdd184e800f3122569dbd4f5 (diff) | |
download | FreeBSD-src-202bd73aeafc8c3afb5735d03a398aa7f1a2e08a.zip FreeBSD-src-202bd73aeafc8c3afb5735d03a398aa7f1a2e08a.tar.gz |
Small cleanup while being here:
- sort includes
- remove usage(), since it seems to come from older version
of the KLD
- remove unnecessary variable
- mark argc/argv as unused
Bring WARNS = 5 to the Makefile.
Diffstat (limited to 'share/examples')
-rw-r--r-- | share/examples/kld/syscall/test/Makefile | 1 | ||||
-rw-r--r-- | share/examples/kld/syscall/test/call.c | 19 |
2 files changed, 6 insertions, 14 deletions
diff --git a/share/examples/kld/syscall/test/Makefile b/share/examples/kld/syscall/test/Makefile index 83ad954..b1c4f72 100644 --- a/share/examples/kld/syscall/test/Makefile +++ b/share/examples/kld/syscall/test/Makefile @@ -3,5 +3,6 @@ PROG= call NO_MAN= +WARNS+= 5 .include <bsd.prog.mk> diff --git a/share/examples/kld/syscall/test/call.c b/share/examples/kld/syscall/test/call.c index 093ec01..1a97259 100644 --- a/share/examples/kld/syscall/test/call.c +++ b/share/examples/kld/syscall/test/call.c @@ -26,26 +26,17 @@ * $FreeBSD$ */ -#include <stdio.h> -#include <stdlib.h> -#include <unistd.h> -#include <sys/syscall.h> #include <sys/types.h> #include <sys/module.h> +#include <sys/syscall.h> -static void usage (void); - -static void -usage (void) -{ - fprintf (stderr, "call syscall-number\n"); - exit (1); -} +#include <stdio.h> +#include <stdlib.h> +#include <unistd.h> int -main(int argc, char **argv) +main(int argc __unused, char **argv __unused) { - char *endptr; int syscall_num; struct module_stat stat; |