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.
This commit is contained in:
Wojciech A. Koszek 2010-01-18 23:09:07 +00:00
parent 6f31cdcdba
commit d632071e0e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=202602
2 changed files with 6 additions and 14 deletions

View File

@ -3,5 +3,6 @@
PROG= call
NO_MAN=
WARNS+= 5
.include <bsd.prog.mk>

View File

@ -26,26 +26,17 @@
* $FreeBSD$
*/
#include <sys/types.h>
#include <sys/module.h>
#include <sys/syscall.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/module.h>
static void usage (void);
static void
usage (void)
{
fprintf (stderr, "call syscall-number\n");
exit (1);
}
int
main(int argc, char **argv)
main(int argc __unused, char **argv __unused)
{
char *endptr;
int syscall_num;
struct module_stat stat;