]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
* lib/nscd.c, lib/nscd.h: Set the service parameter of
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 6 Jan 2008 13:57:17 +0000 (13:57 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 6 Jan 2008 13:57:17 +0000 (13:57 +0000)
  nscd_flush_cache() to const. This avoids a lot of warnings.
* lib/nscd.c: Include "nscd.h" to avoid inconsistent prototypes.

ChangeLog
lib/nscd.c
lib/nscd.h

index ed53bce0c91a3b00fb2c3b6074deda5761aa1a23..415d83414f13407dbd30bb8291d366d77ddaa680 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-01-06  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * lib/nscd.c, lib/nscd.h: Set the service parameter of
+       nscd_flush_cache() to const. This avoids a lot of warnings.
+       * lib/nscd.c: Include "nscd.h" to avoid inconsistent prototypes.
+
 2008-01-06  Nicolas François  <nicolas.francois@centraliens.net>
 
        * lib/encrypt.c: Set the method string as a constant string.
index baa5f6e5759e6284ee16f5c98774efcf53e14dbf..10cb69c344ae0656b3b32818096b246c8c3e8dcb 100644 (file)
 #include <errno.h>
 #include <sys/wait.h>
 #include <sys/types.h>
-
+#include "nscd.h"
 
 /*
  * nscd_flush_cache - flush specified service buffer in nscd cache
  */
-int nscd_flush_cache (char *service)
+int nscd_flush_cache (const char *service)
 {
        pid_t pid, termpid;
        int err, status;
index dc986ae17aabcb438acf27a3450bac333ad605ca..8bb10a8dd6b6769459aeb7918e63bcf4d6274011 100644 (file)
@@ -4,6 +4,6 @@
 /*
  * nscd_flush_cache - flush specified service buffer in nscd cache
  */
-extern int nscd_flush_cache (char *service);
+extern int nscd_flush_cache (const char *service);
 
 #endif