aboutsummaryrefslogtreecommitdiff
path: root/misc/hsearch_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/hsearch_r.c')
-rw-r--r--misc/hsearch_r.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/hsearch_r.c b/misc/hsearch_r.c
index 151bb31efc..95813e4bfb 100644
--- a/misc/hsearch_r.c
+++ b/misc/hsearch_r.c
@@ -70,7 +70,7 @@ hcreate_r (nel, htab)
/* Test for correct arguments. */
if (htab == NULL)
{
- errno = EINVAL;
+ __set_errno (EINVAL);
return 0;
}
@@ -105,7 +105,7 @@ hdestroy_r (htab)
/* Test for correct arguments. */
if (htab == NULL)
{
- errno = EINVAL;
+ __set_errno (EINVAL);
return;
}
@@ -147,7 +147,7 @@ hsearch_r (item, action, retval, htab)
error. */
if (action == ENTER && htab->filled == htab->size)
{
- errno = ENOMEM;
+ __set_errno (ENOMEM);
*retval = NULL;
return 0;
}
@@ -222,7 +222,7 @@ hsearch_r (item, action, retval, htab)
return 1;
}
- errno = ESRCH;
+ __set_errno (ESRCH);
*retval = NULL;
return 0;
}