[hackers] [ubase] keep usage definition above main in ubase || dwts

From: <git_AT_suckless.org>
Date: Tue, 22 Apr 2014 16:36:57 +0200

commit 053e63968df9add6f632da58be1d10084c6798af
Author: dwts <mr.dwts_AT_gmail.com>
Date: Tue Apr 22 16:59:08 2014 +0300

    keep usage definition above main in ubase

diff --git a/ps.c b/ps.c
index 1ab9003..196c2b2 100644
--- a/ps.c
+++ b/ps.c
_AT_@ -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);
 
_AT_@ -23,6 +22,12 @@ enum {
         PS_fflag = 1 << 3
 };
 
+static void
+usage(void)
+{
+ eprintf("usage: [-aAdef] %s
", argv0);
+}
+
 static int flags;
 
 int
_AT_@ -57,12 +62,6 @@ main(int argc, char *argv[])
 }
 
 static void
-usage(void)
-{
- eprintf("usage: [-aAdef] %s
", argv0);
-}
-
-static void
 psout(struct procstat *ps)
 {
         struct procstatus pstatus;
Received on Tue Apr 22 2014 - 16:36:57 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 22 2014 - 16:48:07 CEST