From d632071e0e35408e8a19cbb1e74c5ed3c3f2007d Mon Sep 17 00:00:00 2001 From: "Wojciech A. Koszek" 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/call.c | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'share/examples/kld/syscall/test/call.c') diff --git a/share/examples/kld/syscall/test/call.c b/share/examples/kld/syscall/test/call.c index 093ec0113d50..1a97259ca9d2 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.2.3