keep usage definition above main in ubase

This commit is contained in:
dwts 2014-04-22 16:59:08 +03:00 committed by sin
parent 82f9b69ecf
commit aa9ae6a1b4
1 changed files with 6 additions and 7 deletions

13
ps.c
View File

@ -12,7 +12,6 @@
#include "proc.h"
#include "util.h"
static void usage(void);
static void psout(struct procstat *ps);
static void psr(const char *file);
@ -23,6 +22,12 @@ enum {
PS_fflag = 1 << 3
};
static void
usage(void)
{
eprintf("usage: [-aAdef] %s\n", argv0);
}
static int flags;
int
@ -56,12 +61,6 @@ main(int argc, char *argv[])
return EXIT_SUCCESS;
}
static void
usage(void)
{
eprintf("usage: [-aAdef] %s\n", argv0);
}
static void
psout(struct procstat *ps)
{