From 99d168a532894cafd6648547c1ac30dff2a62c43 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sat, 5 May 2018 17:18:22 +0200 Subject: unit tests: Fix build and re-enable them. --- tests/mock_pam.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'tests/mock_pam.h') diff --git a/tests/mock_pam.h b/tests/mock_pam.h index c9c4f36..7fe0467 100644 --- a/tests/mock_pam.h +++ b/tests/mock_pam.h @@ -1,13 +1,16 @@ /* + * Copyright © 2012-2013 Mike Gabriel . * Copyright © 2012 Canonical Ltd. All rights reserved. * - * Author(s): David Barth + * Author(s): Mike Gabriel + * David Barth * */ #ifndef __MOCK_PAM_H__ #define __MOCK_PAM_H__ +#define LIBPAM_COMPILE #include #include #include @@ -18,7 +21,9 @@ typedef struct pam_handle pam_handle_t; pam_handle_t *pam_handle_new (void); pam_handle_t *pam_handle_empty_pswd_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