aboutsummaryrefslogtreecommitdiff
path: root/src/rc/_usage.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-04-23 21:31:22 +0000
committerRoy Marples <roy@marples.name>2009-04-23 21:31:22 +0000
commitade85d4bd81d7257f5a7e2e4ed40b9cbbbe23651 (patch)
tree278e8ec69f53fac2bc51b5122e6980e625ffeeca /src/rc/_usage.c
parent69534746553adb52d3ede38a4cf8cd3630c97091 (diff)
Improve style for KNF
Diffstat (limited to 'src/rc/_usage.c')
-rw-r--r--src/rc/_usage.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/rc/_usage.c b/src/rc/_usage.c
index cd621d9e..652a1e87 100644
--- a/src/rc/_usage.c
+++ b/src/rc/_usage.c
@@ -25,15 +25,16 @@
*/
#if lint
-# define _noreturn
+# define _noreturn
#endif
#if __GNUC__ > 2 || defined(__INTEL_COMPILER)
-# define _noreturn __attribute__ ((__noreturn__))
+# define _noreturn __attribute__ ((__noreturn__))
#else
-# define _noreturn
+# define _noreturn
#endif
-_noreturn static void usage(int exit_status)
+_noreturn static void
+usage(int exit_status)
{
const char * const has_arg[] = { "", "<arg>", "[arg]" };
int i;
@@ -53,7 +54,7 @@ _noreturn static void usage(int exit_status)
printf("\n\nOptions: [" getoptstring "]\n");
for (i = 0; longopts[i].name; ++i) {
len = printf(" -%c, --%s %s", longopts[i].val, longopts[i].name,
- has_arg[longopts[i].has_arg]);
+ has_arg[longopts[i].has_arg]);
lo = p = xstrdup(longopts_help[i]);
while ((token = strsep(&p, "\n"))) {