login-utils: add header file guards [lgtm scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2019-09-20 16:10:43 +02:00
parent e0bea4dfa8
commit b04f7d0e01
3 changed files with 13 additions and 0 deletions

View 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 */

View 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 */

View 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 */