use always static for usage and keep usage definition above main

This commit is contained in:
dwts
2014-04-22 16:44:16 +03:00
committed by sin
parent 575b38391c
commit 459161481a
6 changed files with 32 additions and 34 deletions

11
yes.c
View File

@@ -3,7 +3,11 @@
#include <stdlib.h>
#include "util.h"
static void usage(void);
static void
usage(void)
{
eprintf("usage: %s [string]\n", argv0);
}
int
main(int argc, char *argv[])
@@ -18,8 +22,3 @@ main(int argc, char *argv[])
return EXIT_FAILURE; /* should not reach */
}
void
usage(void)
{
eprintf("usage: %s [string]\n", argv0);
}