about summary refs log tree commit diff
path: root/locale/nl_langinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/nl_langinfo.c')
-rw-r--r--locale/nl_langinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/locale/nl_langinfo.c b/locale/nl_langinfo.c
index a9fa4238c2..1c42e14a4a 100644
--- a/locale/nl_langinfo.c
+++ b/locale/nl_langinfo.c
@@ -48,7 +48,7 @@ nl_langinfo (item)
   if (category < 0 || category >= LC_ALL)
     {
       /* Bogus category: bogus item.  */
-      errno = EINVAL;
+      __set_errno (EINVAL);
       return NULL;
     }
 
@@ -57,7 +57,7 @@ nl_langinfo (item)
   if (index >= data->nstrings)
     {
       /* Bogus index for this category: bogus item.  */
-      errno = EINVAL;
+      __set_errno (EINVAL);
       return NULL;
     }