From ee792a8fa15a852e06770c57e2047ba5927d9c10 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Tue, 8 Sep 2009 13:06:57 +0000 Subject: [PATCH] * src/newusers.c: Prefer #ifdef over #if. --- ChangeLog | 4 ++++ src/newusers.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 55a96c60..58bc248b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-09-08 Nicolas François + + * src/newusers.c: Prefer #ifdef over #if. + 2009-09-08 Nicolas François * configure.in: We do not use SETPGRP_VOID, and already assume diff --git a/src/newusers.c b/src/newusers.c index a7793ab3..85b2a959 100644 --- a/src/newusers.c +++ b/src/newusers.c @@ -966,7 +966,7 @@ int main (int argc, char **argv) } newpw = *pw; -#if USE_PAM +#ifdef USE_PAM /* keep the list of user/password for later update by PAM */ nusers++; lines = realloc (lines, sizeof (lines[0]) * nusers); @@ -975,7 +975,7 @@ int main (int argc, char **argv) lines[nusers-1] = line; usernames[nusers-1] = strdup (fields[0]); passwords[nusers-1] = strdup (fields[1]); -#endif +#endif /* USE_PAM */ if (add_passwd (&newpw, fields[1])) { fprintf (stderr, _("%s: line %d: can't update password\n"), -- 2.40.0