Un-boolify sbase
It actually makes the binaries smaller, the code easier to read (gems like "val == true", "val == false" are gone) and actually predictable in the sense of that we actually know what we're working with (one bitwise operator was quite adventurous and should now be fixed). This is also more consistent with the other suckless projects around which don't use boolean types.
This commit is contained in:
5
chown.c
5
chown.c
@@ -2,7 +2,6 @@
|
||||
#include <errno.h>
|
||||
#include <grp.h>
|
||||
#include <pwd.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
@@ -11,7 +10,7 @@
|
||||
|
||||
static void chownpwgr(const char *);
|
||||
|
||||
static bool rflag = false;
|
||||
static int rflag = 0;
|
||||
static uid_t uid = -1;
|
||||
static gid_t gid = -1;
|
||||
static int ret = 0;
|
||||
@@ -32,7 +31,7 @@ main(int argc, char *argv[])
|
||||
ARGBEGIN {
|
||||
case 'R':
|
||||
case 'r':
|
||||
rflag = true;
|
||||
rflag = 1;
|
||||
break;
|
||||
default:
|
||||
usage();
|
||||
|
Reference in New Issue
Block a user