From: nekral-guest Date: Sun, 6 Jan 2008 13:57:17 +0000 (+0000) Subject: * lib/nscd.c, lib/nscd.h: Set the service parameter of X-Git-Tag: 4.1.1~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39c9007f6769dc07d460aede4cf1dab385a58ae7;p=thirdparty%2Fshadow.git * 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. --- diff --git a/ChangeLog b/ChangeLog index ed53bce0c..415d83414 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-01-06 Nicolas François + + * 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 * lib/encrypt.c: Set the method string as a constant string. diff --git a/lib/nscd.c b/lib/nscd.c index baa5f6e57..10cb69c34 100644 --- a/lib/nscd.c +++ b/lib/nscd.c @@ -11,12 +11,12 @@ #include #include #include - +#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; diff --git a/lib/nscd.h b/lib/nscd.h index dc986ae17..8bb10a8dd 100644 --- a/lib/nscd.h +++ b/lib/nscd.h @@ -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