Fix coding style

It was about damn time. Consistency is very important in such a
big codebase.
This commit is contained in:
FRIGN
2014-11-13 18:29:30 +01:00
committed by sin
parent e35d9e62a5
commit eee98ed3a4
70 changed files with 622 additions and 557 deletions

13
uname.c
View File

@@ -4,6 +4,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <sys/utsname.h>
#include "util.h"
static void
@@ -44,18 +45,18 @@ main(int argc, char *argv[])
default:
usage();
} ARGEND;
if(uname(&u) == -1)
if (uname(&u) == -1)
eprintf("uname:");
if(sflag || !(nflag || rflag || vflag || mflag))
if (sflag || !(nflag || rflag || vflag || mflag))
putword(u.sysname);
if(nflag)
if (nflag)
putword(u.nodename);
if(rflag)
if (rflag)
putword(u.release);
if(vflag)
if (vflag)
putword(u.version);
if(mflag)
if (mflag)
putword(u.machine);
putchar('\n');