aboutsummaryrefslogtreecommitdiff
path: root/src/util/db2/hash/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/db2/hash/hash.c')
-rw-r--r--src/util/db2/hash/hash.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/util/db2/hash/hash.c b/src/util/db2/hash/hash.c
index 2811688..e522754 100644
--- a/src/util/db2/hash/hash.c
+++ b/src/util/db2/hash/hash.c
@@ -632,7 +632,7 @@ hash_get(dbp, key, data, flag)
hashp = (HTAB *)dbp->internal;
if (flag) {
- hashp->errno = errno = EINVAL;
+ hashp->local_errno = errno = EINVAL;
return (ERROR);
}
return (hash_access(hashp, HASH_GET, (DBT *)key, data));
@@ -649,11 +649,11 @@ hash_put(dbp, key, data, flag)
hashp = (HTAB *)dbp->internal;
if (flag && flag != R_NOOVERWRITE) {
- hashp->errno = errno = EINVAL;
+ hashp->local_errno = errno = EINVAL;
return (ERROR);
}
if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
- hashp->errno = errno = EPERM;
+ hashp->local_errno = errno = EPERM;
return (ERROR);
}
return (hash_access(hashp, flag == R_NOOVERWRITE ?
@@ -670,11 +670,11 @@ hash_delete(dbp, key, flag)
hashp = (HTAB *)dbp->internal;
if (flag) {
- hashp->errno = errno = EINVAL;
+ hashp->local_errno = errno = EINVAL;
return (ERROR);
}
if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
- hashp->errno = errno = EPERM;
+ hashp->local_errno = errno = EPERM;
return (ERROR);
}
@@ -849,7 +849,7 @@ cursor_get(dbp, cursorp, key, val, flags)
hashp = (HTAB *)dbp->internal;
if (flags && flags != R_FIRST && flags != R_NEXT) {
- hashp->errno = errno = EINVAL;
+ hashp->local_errno = errno = EINVAL;
return (ERROR);
}
#ifdef HASH_STATISTICS