1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00

o Remove __P

o Use ANSI function definitions
o mark usage() as __dead2
This commit is contained in:
Warner Losh 2002-03-19 13:29:39 +00:00
parent 3acb2ae91f
commit 1fa5ae8f93
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=92697

View File

@ -65,15 +65,13 @@ struct nlist nl[] = {
{ NULL },
};
void usage __P((void));
void usage(void) __dead2;
#define KREAD(addr, var) \
kvm_read(kd, addr, &var, sizeof(var)) != sizeof(var)
int
main(argc, argv)
int argc;
char *argv[];
main(int argc, char *argv[])
{
int ch, newl, skip;
char *p, *ep;
@ -192,7 +190,7 @@ main(argc, argv)
}
void
usage()
usage(void)
{
(void)fprintf(stderr, "usage: dmesg [-a] [-M core] [-N system]\n");
exit(1);