From b04f7d0e0115f9f703d87e5c5614ec625c806174 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 20 Sep 2019 16:10:43 +0200 Subject: [PATCH] login-utils: add header file guards [lgtm scan] Signed-off-by: Karel Zak --- login-utils/auth.h | 4 ++++ login-utils/islocal.h | 5 +++++ login-utils/libuser.h | 4 ++++ 3 files changed, 13 insertions(+) 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 */ -- 2.39.2