about summary refs log tree commit diff
path: root/nss/nsswitch.c
diff options
context:
space:
mode:
Diffstat (limited to 'nss/nsswitch.c')
-rw-r--r--nss/nsswitch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nss/nsswitch.c b/nss/nsswitch.c
index 79c9d2706d..f49ddb95a6 100644
--- a/nss/nsswitch.c
+++ b/nss/nsswitch.c
@@ -195,14 +195,14 @@ __nss_configure_lookup (const char *dbname, const char *service_line)
 	break;
       if (cmp > 0)
 	{
-	  errno = EINVAL;
+	  __set_errno (EINVAL);
 	  return -1;
 	}
     }
 
   if (cnt == sizeof databases)
     {
-      errno = EINVAL;
+      __set_errno (EINVAL);
       return -1;
     }
 
@@ -216,7 +216,7 @@ __nss_configure_lookup (const char *dbname, const char *service_line)
   if (new_db == NULL)
     {
       /* Illegal service specification.  */
-      errno = EINVAL;
+      __set_errno (EINVAL);
       return -1;
     }