]> granicus.if.org Git - linux-pam/commitdiff
Relevant BUGIDs: none
authorThorsten Kukuk <kukuk@thkukuk.de>
Sat, 17 Sep 2005 16:34:20 +0000 (16:34 +0000)
committerThorsten Kukuk <kukuk@thkukuk.de>
Sat, 17 Sep 2005 16:34:20 +0000 (16:34 +0000)
Purpose of commit: bugfix

Commit summary:
---------------

Fix code for which gcc4.1 prints warnings

libpam/pam_handlers.c
libpam/pam_prelude.c
libpam/pam_prelude.h

index 76af72c460a5c1c52f5088958f0d5c9c27a9b3cc..378c6cee52f5770053c3d174aef9b6aaba679549 100644 (file)
@@ -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;
index 3ad7497c2ef5256cbfc93685b4dd5057db390b35..6c73bf5d57650c4d5ed0f42795a860869db9ed45 100644 (file)
@@ -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;
index c617b07080809d6420805d67f5e9530f7fe6048b..13ee6fdb7ca325a06ae3cc88061bd918b3c00fe7 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <security/_pam_types.h>
 
-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 */