diff options
author | Roland McGrath <roland@gnu.org> | 1996-01-29 19:30:15 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-01-29 19:30:15 +0000 |
commit | b86199fb609d691b0a12761621760aa52562e195 (patch) | |
tree | 1516836553fe8f661a017a509b36f3604d82cd36 /db/hash/hash.c | |
parent | 429ed67ba10dccfa6472bf803473fd20c0203309 (diff) | |
download | glibc-b86199fb609d691b0a12761621760aa52562e195.tar.gz glibc-b86199fb609d691b0a12761621760aa52562e195.tar.xz glibc-b86199fb609d691b0a12761621760aa52562e195.zip |
Set $inhibit_glue.
Diffstat (limited to 'db/hash/hash.c')
-rw-r--r-- | db/hash/hash.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/db/hash/hash.c b/db/hash/hash.c index 4b7b732a8f..0db7b32b8c 100644 --- a/db/hash/hash.c +++ b/db/hash/hash.c @@ -505,7 +505,7 @@ flush_meta(hashp) else if (wsize != sizeof(HASHHDR)) { errno = EFTYPE; - hashp->errno = errno; + hashp->errnum = errno; return (-1); } for (i = 0; i < NCACHED; i++) @@ -536,7 +536,7 @@ hash_get(dbp, key, data, flag) hashp = (HTAB *)dbp->internal; if (flag) { - hashp->errno = errno = EINVAL; + hashp->errnum = errno = EINVAL; return (ERROR); } return (hash_access(hashp, HASH_GET, (DBT *)key, data)); @@ -553,11 +553,11 @@ hash_put(dbp, key, data, flag) hashp = (HTAB *)dbp->internal; if (flag && flag != R_NOOVERWRITE) { - hashp->errno = errno = EINVAL; + hashp->errnum = errno = EINVAL; return (ERROR); } if ((hashp->flags & O_ACCMODE) == O_RDONLY) { - hashp->errno = errno = EPERM; + hashp->errnum = errno = EPERM; return (ERROR); } return (hash_access(hashp, flag == R_NOOVERWRITE ? @@ -574,11 +574,11 @@ hash_delete(dbp, key, flag) hashp = (HTAB *)dbp->internal; if (flag && flag != R_CURSOR) { - hashp->errno = errno = EINVAL; + hashp->errnum = errno = EINVAL; return (ERROR); } if ((hashp->flags & O_ACCMODE) == O_RDONLY) { - hashp->errno = errno = EPERM; + hashp->errnum = errno = EPERM; return (ERROR); } return (hash_access(hashp, HASH_DELETE, (DBT *)key, NULL)); @@ -729,7 +729,7 @@ hash_seq(dbp, key, data, flag) hashp = (HTAB *)dbp->internal; if (flag && flag != R_FIRST && flag != R_NEXT) { - hashp->errno = errno = EINVAL; + hashp->errnum = errno = EINVAL; return (ERROR); } #ifdef HASH_STATISTICS |