[Pkg-shadow-commits] r1675 - in upstream/trunk: . lib
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Sun Jan 6 13:57:18 UTC 2008
Author: nekral-guest
Date: 2008-01-06 13:57:17 +0000 (Sun, 06 Jan 2008)
New Revision: 1675
Modified:
upstream/trunk/ChangeLog
upstream/trunk/lib/nscd.c
upstream/trunk/lib/nscd.h
Log:
* 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.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2008-01-06 13:52:21 UTC (rev 1674)
+++ upstream/trunk/ChangeLog 2008-01-06 13:57:17 UTC (rev 1675)
@@ -1,5 +1,11 @@
2008-01-06 Nicolas François <nicolas.francois at 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 at centraliens.net>
+
* lib/encrypt.c: Set the method string as a constant string.
2008-01-06 Nicolas François <nicolas.francois at centraliens.net>
Modified: upstream/trunk/lib/nscd.c
===================================================================
--- upstream/trunk/lib/nscd.c 2008-01-06 13:52:21 UTC (rev 1674)
+++ upstream/trunk/lib/nscd.c 2008-01-06 13:57:17 UTC (rev 1675)
@@ -11,12 +11,12 @@
#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;
Modified: upstream/trunk/lib/nscd.h
===================================================================
--- upstream/trunk/lib/nscd.h 2008-01-06 13:52:21 UTC (rev 1674)
+++ upstream/trunk/lib/nscd.h 2008-01-06 13:57:17 UTC (rev 1675)
@@ -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
More information about the Pkg-shadow-commits
mailing list