about summary refs log tree commit diff
path: root/nscd/cache.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2017-10-10 14:09:02 +0200
committerAndreas Schwab <schwab@suse.de>2017-10-11 15:51:52 +0200
commit2faa42daa886cc176dfc10fef2308c9191a6ec7f (patch)
tree3d40397552004382b7da9af9da37692657fc7dec /nscd/cache.c
parentd8425e116cdd954fea0c04c0f406179b5daebbb3 (diff)
downloadglibc-2faa42daa886cc176dfc10fef2308c9191a6ec7f.tar.gz
glibc-2faa42daa886cc176dfc10fef2308c9191a6ec7f.tar.xz
glibc-2faa42daa886cc176dfc10fef2308c9191a6ec7f.zip
nscd: remove reference to libnsl
This removes the dependency on libnsl from nscd.  It only used __nis_hash,
build its own copy under the name __nscd_hash.
Diffstat (limited to 'nscd/cache.c')
-rw-r--r--nscd/cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nscd/cache.c b/nscd/cache.c
index b9dbc7a0bd..4a17c3371b 100644
--- a/nscd/cache.c
+++ b/nscd/cache.c
@@ -25,7 +25,6 @@
 #include <string.h>
 #include <libintl.h>
 #include <arpa/inet.h>
-#include <rpcsvc/nis.h>
 #include <sys/mman.h>
 #include <sys/param.h>
 #include <sys/stat.h>
@@ -33,6 +32,7 @@
 
 #include "nscd.h"
 #include "dbg_log.h"
+#include "nscd_hash.h"
 
 
 /* Wrapper functions with error checking for standard functions.  */
@@ -74,7 +74,7 @@ struct datahead *
 cache_search (request_type type, const void *key, size_t len,
 	      struct database_dyn *table, uid_t owner)
 {
-  unsigned long int hash = __nis_hash (key, len) % table->head->module;
+  unsigned long int hash = __nscd_hash (key, len) % table->head->module;
 
   unsigned long int nsearched = 0;
   struct datahead *result = NULL;
@@ -153,7 +153,7 @@ cache_add (int type, const void *key, size_t len, struct datahead *packet,
 	       first ? _(" (first)") : "");
     }
 
-  unsigned long int hash = __nis_hash (key, len) % table->head->module;
+  unsigned long int hash = __nscd_hash (key, len) % table->head->module;
   struct hashentry *newp;
 
   newp = mempool_alloc (table, sizeof (struct hashentry), 0);