summaryrefslogtreecommitdiffstats
path: root/pw/pw_user.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-08-03 06:06:56 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-08-03 06:06:56 +0000
commite854cbea2a39ade7b1dc00a3143f699eee5cc9bb (patch)
tree57a9e9a76619915d57e547486730dfe1bd930ed3 /pw/pw_user.c
parent5f0399d80c7e24560dcf6762d37aaa6b149ea0e2 (diff)
downloadpw-darwin-e854cbea2a39ade7b1dc00a3143f699eee5cc9bb.tar.gz
pw-darwin-e854cbea2a39ade7b1dc00a3143f699eee5cc9bb.tar.zst
pw-darwin-e854cbea2a39ade7b1dc00a3143f699eee5cc9bb.zip
Fix bugs spotted by gcc
Reported by: adrian
Diffstat (limited to 'pw/pw_user.c')
-rw-r--r--pw/pw_user.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c
index f1207e0..b51a6cb 100644
--- a/pw/pw_user.c
+++ b/pw/pw_user.c
@@ -700,7 +700,7 @@ pw_user_show(int argc, char **argv, char *arg1)
{
struct passwd *pwd = NULL;
char *name = NULL;
- uid_t id = -1;
+ intmax_t id = -1;
int ch;
bool all = false;
bool pretty = false;
@@ -786,7 +786,7 @@ pw_user_del(int argc, char **argv, char *arg1)
char home[MAXPATHLEN];
const char *cfg = NULL;
struct stat st;
- uid_t id;
+ intmax_t id = -1;
int ch, rc;
bool nis = false;
bool deletehome = false;
@@ -1423,8 +1423,9 @@ pw_user_mod(int argc, char **argv, char *arg1)
int ch, fd = -1;
size_t i, j;
bool quiet, createhome, pretty, dryrun, nis, edited, docreatehome;
+ bool precrypted;
mode_t homemode = 0;
- time_t expire_days, password_days, now, precrypted;
+ time_t expire_days, password_days, now;
expire_days = password_days = -1;
gecos = homedir = grname = name = newname = skel = shell =NULL;