Adding header guards

This commit is contained in:
Bandie 2018-10-30 21:19:07 +01:00
parent 38de2fc9d2
commit 200a2ea260
Signed by: Bandie
GPG Key ID: C1E133BC65A822DD
3 changed files with 12 additions and 2 deletions

View File

@ -5,8 +5,12 @@ DATE : 2018-03-27T02:34:08+02:00
LICENSE : GNU-GPLv3 LICENSE : GNU-GPLv3
*/ */
#ifndef PAM_PANIC_AUTHDEVICE_H
#define PAM_PANIC_AUTHDEVICE_H
#include "../config.h" #include "../config.h"
#include <stdint.h> #include <stdint.h>
#include <security/pam_modules.h> #include <security/pam_modules.h>
int authDevice(pam_handle_t *pamh, char *allowed, char *rejected, char *serious_dev, int8_t bSerious, int8_t bReboot, int8_t bPoweroff); int authDevice(pam_handle_t *pamh, char *allowed, char *rejected, char *serious_dev, int8_t bSerious, int8_t bReboot, int8_t bPoweroff);
#endif

View File

@ -5,6 +5,9 @@ DATE : 2018-03-27T02:34:08+02:00
LICENSE : GNU-GPLv3 LICENSE : GNU-GPLv3
*/ */
#ifndef PAM_PANIC_PASSWORD_H
#define PAM_PANIC_PASSWORD_H
#include "../config.h" #include "../config.h"
#include <stdint.h> #include <stdint.h>
#include <security/pam_modules.h> #include <security/pam_modules.h>
@ -16,5 +19,4 @@ LICENSE : GNU-GPLv3
int authPassword(pam_handle_t *pamh, char *serious_dev, int8_t bSerious, int8_t bReboot, int8_t bPoweroff); int authPassword(pam_handle_t *pamh, char *serious_dev, int8_t bSerious, int8_t bReboot, int8_t bPoweroff);
#endif

View File

@ -5,7 +5,11 @@ DATE : 2018-03-27T02:34:08+02:00
LICENSE : GNU-GPLv3 LICENSE : GNU-GPLv3
*/ */
#ifndef PAM_PANIC_REJECT_H
#define PAM_PANIC_REJECT_H
#include "../config.h" #include "../config.h"
#include <stdint.h> #include <stdint.h>
int reject(char *serious_dev, int8_t bSerious, int8_t bReboot, int8_t bPoweroff); int reject(char *serious_dev, int8_t bSerious, int8_t bReboot, int8_t bPoweroff);
#endif