]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add "notfound" data to cache, not iov pointer.
authorUlrich Drepper <drepper@redhat.com>
Thu, 24 Jun 1999 13:09:46 +0000 (13:09 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 24 Jun 1999 13:09:46 +0000 (13:09 +0000)
nscd/grpcache.c
nscd/hstcache.c
nscd/pwdcache.c

index 1c6b1aff3fc989d67e184889d082448292932605..a9de8599a5e7dd27d5b9c78f1730f72eb007662b 100644 (file)
@@ -104,7 +104,7 @@ cache_addgr (struct database *db, int fd, request_header *req, void *key,
       /* Now get the lock to safely insert the records.  */
       pthread_rwlock_rdlock (&db->lock);
 
-      cache_add (req->type, copy, req->key_len, &iov_notfound,
+      cache_add (req->type, copy, req->key_len, &notfound,
                 sizeof (notfound), (void *) -1, 0, t, db);
 
       pthread_rwlock_unlock (&db->lock);
index 15459752bbd58a0ac9eea40666f1c7ced9fde590..7dc38ebd9cb6dfb0c7607885df13f2dcd9880457 100644 (file)
@@ -115,7 +115,7 @@ cache_addhst (struct database *db, int fd, request_header *req, void *key,
       /* Now get the lock to safely insert the records.  */
       pthread_rwlock_rdlock (&db->lock);
 
-      cache_add (req->type, copy, req->key_len, &iov_notfound,
+      cache_add (req->type, copy, req->key_len, &notfound,
                 sizeof (notfound), (void *) -1, 0, t, db);
 
       pthread_rwlock_unlock (&db->lock);
index 5bf89a75bacc7806038bd8b8532c91cdb8548750..e9ee9e05dc9b14cb691ca732142bd6bf0dd1199b 100644 (file)
@@ -111,7 +111,7 @@ cache_addpw (struct database *db, int fd, request_header *req, void *key,
       /* Now get the lock to safely insert the records.  */
       pthread_rwlock_rdlock (&db->lock);
 
-      cache_add (req->type, copy, req->key_len, &iov_notfound,
+      cache_add (req->type, copy, req->key_len, &notfound,
                 sizeof (notfound), (void *) -1, 0, t, db);
 
       pthread_rwlock_unlock (&db->lock);