From: Karel Zak Date: Fri, 20 Sep 2019 14:10:43 +0000 (+0200) Subject: login-utils: add header file guards [lgtm scan] X-Git-Tag: v2.35-rc1~199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b04f7d0e0115f9f703d87e5c5614ec625c806174;p=thirdparty%2Futil-linux.git login-utils: add header file guards [lgtm scan] Signed-off-by: Karel Zak --- diff --git a/login-utils/auth.h b/login-utils/auth.h index bf7c36924d..ee58d12570 100644 --- a/login-utils/auth.h +++ b/login-utils/auth.h @@ -7,7 +7,11 @@ * there is no warranty. * */ +#ifndef UTIL_LINUX_LOGIN_AUTH_H +#define UTIL_LINUX_LOGIN_AUTH_H #include extern int auth_pam(const char *service_name, uid_t uid, const char *username); + +#endif /* UTIL_LINUX_LOGIN_AUTH_H */ diff --git a/login-utils/islocal.h b/login-utils/islocal.h index 2c5879906c..11a1beda6e 100644 --- a/login-utils/islocal.h +++ b/login-utils/islocal.h @@ -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 */ diff --git a/login-utils/libuser.h b/login-utils/libuser.h index 7454b997e4..d4fae64ce7 100644 --- a/login-utils/libuser.h +++ b/login-utils/libuser.h @@ -7,8 +7,12 @@ * there is no warranty. * */ +#ifndef UTIL_LINUX_LOGIN_LIBUSER_H +#define UTIL_LINUX_LOGIN_LIBUSER_H #include 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 */