]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Use #if instead of #ifdef for ENABLE_GSHADOW
authorChenQi1989 <40684930+ChenQi1989@users.noreply.github.com>
Fri, 29 Jun 2018 06:54:07 +0000 (06:54 +0000)
committerLennart Poettering <lennart@poettering.net>
Fri, 29 Jun 2018 08:27:51 +0000 (10:27 +0200)
ENABLE_GSHADOW is defined to be 0 or 1. So #if should be used instead of #ifdef.

src/basic/user-util.h

index b74f1688596ef41e8d51f2092ce0309eba38f1c9..b2f198c89b2811df0cdb0195b7cf8832c77c479c 100644 (file)
@@ -102,7 +102,7 @@ int fgetgrent_sane(FILE *stream, struct group **gr);
 int putpwent_sane(const struct passwd *pw, FILE *stream);
 int putspent_sane(const struct spwd *sp, FILE *stream);
 int putgrent_sane(const struct group *gr, FILE *stream);
-#ifdef ENABLE_GSHADOW
+#if ENABLE_GSHADOW
 int fgetsgent_sane(FILE *stream, struct sgrp **sg);
 int putsgent_sane(const struct sgrp *sg, FILE *stream);
 #endif