mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 09:02:44 +00:00
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:
parent
6f31cdcdba
commit
d632071e0e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=202602
@ -3,5 +3,6 @@
|
||||
|
||||
PROG= call
|
||||
NO_MAN=
|
||||
WARNS+= 5
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user