keep usage definition above main in ubase
This commit is contained in:
parent
996c2d42a3
commit
053e63968d
13
ps.c
13
ps.c
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user