]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
login-utils: add header file guards [lgtm scan]
authorKarel Zak <kzak@redhat.com>
Fri, 20 Sep 2019 14:10:43 +0000 (16:10 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 20 Sep 2019 14:10:43 +0000 (16:10 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/auth.h
login-utils/islocal.h
login-utils/libuser.h

index bf7c36924db22ee6f6f8bd65650e4bfe319788a5..ee58d1257047b287e7b898a81871f1df53ff8c18 100644 (file)
@@ -7,7 +7,11 @@
  *   there is no warranty.
  *
  */
+#ifndef UTIL_LINUX_LOGIN_AUTH_H
+#define UTIL_LINUX_LOGIN_AUTH_H
 
 #include <sys/types.h>
 
 extern int auth_pam(const char *service_name, uid_t uid, const char *username);
+
+#endif /* UTIL_LINUX_LOGIN_AUTH_H */
index 2c5879906c01a2662f1685662276fe5ed352eccd..11a1beda6e5c9599acf79293329dc3b257acee02 100644 (file)
@@ -1 +1,6 @@
+#ifndef UTIL_LINUX_LOGIN_ISLOCAL_H
+#define UTIL_LINUX_LOGIN_ISLOCAL_H
+
 extern int is_local(const char *user);
+
+#endif /* UTIL_LINUX_LOGIN_ISLOCAL_H */
index 7454b997e48ea15867d2e73030baed0bbb5f8311..d4fae64ce7200e97dd4ecb0dcbb718688578e9bf 100644 (file)
@@ -7,8 +7,12 @@
  *   there is no warranty.
  *
  */
+#ifndef UTIL_LINUX_LOGIN_LIBUSER_H
+#define UTIL_LINUX_LOGIN_LIBUSER_H
 
 #include <sys/types.h>
 
 extern int set_value_libuser(const char *service_name, const char *username,
                        uid_t uid, const char *attr, const char *val);
+
+#endif /* UTIL_LINUX_LOGIN_LIBUSER_H */