From: Thorsten Kukuk Date: Sat, 17 Sep 2005 16:34:20 +0000 (+0000) Subject: Relevant BUGIDs: none X-Git-Tag: help~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74a4f533ce23d44dc5fded7a60caef447039d3fd;p=linux-pam Relevant BUGIDs: none Purpose of commit: bugfix Commit summary: --------------- Fix code for which gcc4.1 prints warnings --- diff --git a/libpam/pam_handlers.c b/libpam/pam_handlers.c index 76af72c4..378c6cee 100644 --- a/libpam/pam_handlers.c +++ b/libpam/pam_handlers.c @@ -587,7 +587,7 @@ extract_modulename(const char *mod_path) if (p == NULL) p = mod_path; else - *p++; + p++; if ((retval = strdup (p)) == NULL) return NULL; diff --git a/libpam/pam_prelude.c b/libpam/pam_prelude.c index 3ad7497c..6c73bf5d 100644 --- a/libpam/pam_prelude.c +++ b/libpam/pam_prelude.c @@ -382,7 +382,7 @@ pam_alert_prelude(const char *msg, void *data, } static int -pam_alert_prelude_init(const pam_handle_t *pamh, int authval) +pam_alert_prelude_init(pam_handle_t *pamh, int authval) { int ret; @@ -436,7 +436,7 @@ pam_alert_prelude_init(const pam_handle_t *pamh, int authval) } void -prelude_send_alert(const pam_handle_t *pamh, int authval) +prelude_send_alert(pam_handle_t *pamh, int authval) { int ret; diff --git a/libpam/pam_prelude.h b/libpam/pam_prelude.h index c617b070..13ee6fdb 100644 --- a/libpam/pam_prelude.h +++ b/libpam/pam_prelude.h @@ -10,7 +10,7 @@ #include -void prelude_send_alert(const pam_handle_t *pamh, int authval); +void prelude_send_alert(pam_handle_t *pamh, int authval); #endif /* _SECURITY_PAM_PRELUDE_H */