diff options
Diffstat (limited to 'nscd/nscd-client.h')
-rw-r--r-- | nscd/nscd-client.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/nscd/nscd-client.h b/nscd/nscd-client.h index 7702f590bd..3c9688fd30 100644 --- a/nscd/nscd-client.h +++ b/nscd/nscd-client.h @@ -44,6 +44,9 @@ /* Path for the configuration file. */ #define _PATH_NSCDCONF "/etc/nscd.conf" +/* Maximu allowed length for the key. */ +#define MAXKEYLEN 1024 + /* Available services. */ typedef enum @@ -323,10 +326,10 @@ static inline int __nscd_drop_map_ref (struct mapped_database *map, /* Search the mapped database. */ -extern const struct datahead *__nscd_cache_search (request_type type, - const char *key, - size_t keylen, - const struct mapped_database *mapped); +extern struct datahead *__nscd_cache_search (request_type type, + const char *key, + size_t keylen, + const struct mapped_database *mapped); /* Wrappers around read, readv and write that only read/write less than LEN bytes on error or EOF. */ |