From a246de8bd1b37f1b9881b38036a736305e3e4052 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sat, 5 May 2018 00:40:13 +0200 Subject: unit tests: Fix them and reenable them. --- tests/mock_pam.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests/mock_pam.h') diff --git a/tests/mock_pam.h b/tests/mock_pam.h index c335e49..01bea3f 100644 --- a/tests/mock_pam.h +++ b/tests/mock_pam.h @@ -10,6 +10,7 @@ #ifndef __MOCK_PAM_H__ #define __MOCK_PAM_H__ +#define LIBPAM_COMPILE #include #include #include @@ -19,7 +20,10 @@ typedef struct pam_handle pam_handle_t; pam_handle_t *pam_handle_new (void); -int pam_get_item (const pam_handle_t *pamh, int type, const void **value); -int pam_set_item (pam_handle_t *pamh, int type, const void *value); + +int PAM_NONNULL((1)) +pam_get_item (const pam_handle_t *pamh, int type, const void **value); +int PAM_NONNULL((1)) +pam_set_item (pam_handle_t *pamh, int type, const void *value); #endif -- cgit v1.2.3