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 996c2d42a3
commit 053e63968d
1 changed files with 6 additions and 7 deletions

13
ps.c
View File

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