mirror of
https://github.com/openbsd/src.git
synced 2024-12-22 16:42:56 -08:00
- make usage() static and __dead
- while here switch main to return instead of exit(3) OK tedu@
This commit is contained in:
parent
3dca5c8b17
commit
5399dd59fb
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: domainname.c,v 1.9 2015/01/16 06:39:31 deraadt Exp $ */
|
/* $OpenBSD: domainname.c,v 1.10 2016/02/01 22:26:39 gsoares Exp $ */
|
||||||
/* $NetBSD: domainname.c,v 1.7 1995/03/21 09:04:22 cgd Exp $ */
|
/* $NetBSD: domainname.c,v 1.7 1995/03/21 09:04:22 cgd Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
extern char *__progname;
|
extern char *__progname;
|
||||||
|
|
||||||
void usage(void);
|
static void __dead usage(void);
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
@ -66,10 +66,10 @@ main(int argc, char *argv[])
|
|||||||
err(1, "getdomainname");
|
err(1, "getdomainname");
|
||||||
(void)printf("%s\n", domainname);
|
(void)printf("%s\n", domainname);
|
||||||
}
|
}
|
||||||
exit(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void __dead
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
(void)fprintf(stderr, "usage: %s [name-of-domain]\n", __progname);
|
(void)fprintf(stderr, "usage: %s [name-of-domain]\n", __progname);
|
||||||
|
Loading…
Reference in New Issue
Block a user