summaryrefslogtreecommitdiffstats
path: root/login-utils/setpwnam.c
diff options
context:
space:
mode:
authorSami Kerola2011-11-13 17:36:55 +0100
committerSami Kerola2011-11-23 21:50:17 +0100
commit8187b555df56bdb8bcc63ce8fb39e99564408e62 (patch)
tree064a28c15c1fc2c3e79556f88ccac62956d605cb /login-utils/setpwnam.c
parentlogin: add version printing option (diff)
downloadkernel-qcow2-util-linux-8187b555df56bdb8bcc63ce8fb39e99564408e62.tar.gz
kernel-qcow2-util-linux-8187b555df56bdb8bcc63ce8fb39e99564408e62.tar.xz
kernel-qcow2-util-linux-8187b555df56bdb8bcc63ce8fb39e99564408e62.zip
chfn, chsh, setpwnam: get true/false from stdbool.h
Requires C99, which should not be a problem. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'login-utils/setpwnam.c')
-rw-r--r--login-utils/setpwnam.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/login-utils/setpwnam.c b/login-utils/setpwnam.c
index c1e6efb17..9299ffa83 100644
--- a/login-utils/setpwnam.c
+++ b/login-utils/setpwnam.c
@@ -61,15 +61,11 @@
#include <sys/resource.h>
#include <sys/stat.h>
#include <paths.h>
+#include <stdbool.h>
#include "setpwnam.h"
#include "c.h"
-#define false 0
-#define true 1
-
-typedef int boolean;
-
static void pw_init(void);
/*
@@ -83,7 +79,7 @@ setpwnam (struct passwd *pwd)
{
FILE *fp = NULL, *pwf = NULL;
int x, save_errno, fd, ret;
- boolean found;
+ int found;
int oldumask;
int namelen;
int buflen = 256;