mirror of git://git.suckless.org/sbase
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 "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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue