ubase

suckless linux base utils
git clone git://git.2f30.org/ubase.git
Log | Files | Refs | README | LICENSE

commit 053e63968df9add6f632da58be1d10084c6798af
parent 996c2d42a31dbcc6b5cdcd9ca20c9e09d2b54b94
Author: dwts <mr.dwts@gmail.com>
Date:   Tue, 22 Apr 2014 16:59:08 +0300

keep usage definition above main in ubase

Diffstat:
ps.c | 13++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/ps.c b/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 @@ -57,12 +62,6 @@ main(int argc, char *argv[]) } static void -usage(void) -{ - eprintf("usage: [-aAdef] %s\n", argv0); -} - -static void psout(struct procstat *ps) { struct procstatus pstatus;