* 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.
This commit is contained in:
parent
ee268550d9
commit
39c9007f67
@ -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>
|
2008-01-06 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* lib/encrypt.c: Set the method string as a constant string.
|
* lib/encrypt.c: Set the method string as a constant string.
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#include "nscd.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* nscd_flush_cache - flush specified service buffer in nscd cache
|
* 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;
|
pid_t pid, termpid;
|
||||||
int err, status;
|
int err, status;
|
||||||
|
@ -4,6 +4,6 @@
|
|||||||
/*
|
/*
|
||||||
* nscd_flush_cache - flush specified service buffer in nscd cache
|
* 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
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user