From 202bd73aeafc8c3afb5735d03a398aa7f1a2e08a Mon Sep 17 00:00:00 2001 From: wkoszek Date: Mon, 18 Jan 2010 23:09:07 +0000 Subject: 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. --- share/examples/kld/syscall/test/Makefile | 1 + share/examples/kld/syscall/test/call.c | 19 +++++-------------- 2 files changed, 6 insertions(+), 14 deletions(-) (limited to 'share/examples/kld') 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 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 -#include -#include -#include #include #include +#include -static void usage (void); - -static void -usage (void) -{ - fprintf (stderr, "call syscall-number\n"); - exit (1); -} +#include +#include +#include int -main(int argc, char **argv) +main(int argc __unused, char **argv __unused) { - char *endptr; int syscall_num; struct module_stat stat; -- cgit v1.1