aboutsummaryrefslogtreecommitdiffstats
path: root/src/auth/pam.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-18 11:55:53 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-18 11:55:53 +0100
commit6b2def45ea0e5e1f999a06a6b2bd175662024abc (patch)
treeb17188d4bf621f35ec0fe4fc420ff9fcfca470a3 /src/auth/pam.c
parentupdate to new version of libpassphrase (diff)
downloadcerberus-6b2def45ea0e5e1f999a06a6b2bd175662024abc.tar.gz
cerberus-6b2def45ea0e5e1f999a06a6b2bd175662024abc.tar.bz2
cerberus-6b2def45ea0e5e1f999a06a6b2bd175662024abc.tar.xz
dco + do not require gcc
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--src/auth/pam.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/auth/pam.c b/src/auth/pam.c
index ed220a9..b418d18 100644
--- a/src/auth/pam.c
+++ b/src/auth/pam.c
@@ -32,7 +32,10 @@
#define __failed(RC) ((RC) != PAM_SUCCESS)
-static void quit_pam(int sig) __attribute__((noreturn));
+#ifdef __GNUC__
+__attribute__((noreturn))
+#endif
+static void quit_pam(int sig);
static int conv_pam(int num_msg, const struct pam_message** msg, struct pam_response** resp, void* appdata_ptr);
@@ -73,8 +76,10 @@ static char auto_authenticated = 1;
static char* (*passphrase_reader)(void) = NULL;
+#ifdef __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wsuggest-attribute=pure"
+#endif
/**
* Exit if a PAM instruction failed
*
@@ -92,7 +97,9 @@ static void do_pam(int rc)
_exit(1);
}
}
+#ifdef __GNUC__
# pragma GCC diagnostic pop
+#endif
/**