Discussion:
domainname(1) - make usage __dead
Gleydson Soares
2016-01-29 18:17:23 UTC
Permalink
make usage() __dead and static, while here switch main to return instead of exit(3)
Ted Unangst
2016-01-29 19:34:39 UTC
Permalink
-void
+__dead static void
usage(void)
{
(void)fprintf(stderr, "usage: %s [name-of-domain]\n", __progname);
do we have a preferred order for these words? i always use static void __dead
because i like the real C keywords first, then the annotations to follow.
starting the line with __ creates "glare". i don't know. not a big deal, just
throwing it out there.
Todd C. Miller
2016-01-31 03:33:51 UTC
Permalink
Post by Ted Unangst
do we have a preferred order for these words? i always use static void __dead
because i like the real C keywords first, then the annotations to follow.
starting the line with __ creates "glare". i don't know. not a big deal, just
throwing it out there.
Most code in the tree uses "static __dead void" which is what I
prefer.

- todd

Loading...