about summary refs log tree commit diff
path: root/locale/loadlocale.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/loadlocale.c')
-rw-r--r--locale/loadlocale.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/locale/loadlocale.c b/locale/loadlocale.c
index 5894b074de..474a73cf6e 100644
--- a/locale/loadlocale.c
+++ b/locale/loadlocale.c
@@ -144,7 +144,7 @@ _nl_load_locale (struct loaded_l10nfile *file, int category)
 		    {
 		      free (filedata);
 		      if (nread == 0)
-			errno = EINVAL; /* Bizarreness going on.  */
+			__set_errno (EINVAL); /* Bizarreness going on.  */
 		      goto puntfd;
 		    }
 		  p += nread;
@@ -153,7 +153,7 @@ _nl_load_locale (struct loaded_l10nfile *file, int category)
 	    }
 	  else
 	    goto puntfd;
-	  errno = save_err;
+	  __set_errno (save_err);
 	}
       else
 	goto puntfd;
@@ -184,7 +184,7 @@ _nl_load_locale (struct loaded_l10nfile *file, int category)
        >= (size_t) st.st_size))
     {
       /* Insufficient data.  */
-      errno = EINVAL;
+      __set_errno (EINVAL);
       goto puntmap;
     }
 
@@ -204,7 +204,7 @@ _nl_load_locale (struct loaded_l10nfile *file, int category)
       if (idx >= newdata->filesize)
 	{
 	  free (newdata);
-	  errno = EINVAL;
+	  __set_errno (EINVAL);
 	  goto puntmap;
 	}
       if (_nl_value_types[category][cnt] == word)