keep usage definition above main

This commit is contained in:
dwts
2014-04-22 15:13:51 +03:00
committed by sin
parent f488547779
commit 575b38391c
4 changed files with 22 additions and 25 deletions

11
nice.c
View File

@@ -8,7 +8,11 @@
#include <unistd.h>
#include "util.h"
static void usage(void);
static void
usage(void)
{
eprintf("usage: nice [-n inc] command [options ...]\n");
}
int
main(int argc, char *argv[])
@@ -43,8 +47,3 @@ main(int argc, char *argv[])
return (savederrno == ENOENT)? 127 : 126;
}
static void
usage(void)
{
eprintf("usage: nice [-n inc] command [options ...]\n");
}