]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
nis/nss_nisplus: Kill warnings
authorUlrich Drepper <drepper@gmail.com>
Thu, 7 Jul 2011 02:22:48 +0000 (22:22 -0400)
committerUlrich Drepper <drepper@gmail.com>
Thu, 7 Jul 2011 02:22:48 +0000 (22:22 -0400)
ChangeLog
nis/nss_nisplus/nisplus-ethers.c
nis/nss_nisplus/nisplus-spwd.c

index ad686636ce017930967a727646216778c9484d95..1a90d02938a4d2d2356f0866d88362d8ff4037bc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-07-06  Marek Polacek  <mpolacek@redhat.com>
+
+       * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
+       `status' variable.
+       * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
+       Likewise.
+
 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
 
        * Makefile (strop-tests): Add strncat.
index 298869f931d768aa4e559901c1611cee5c5b28f8..8e5c5f56b73f14f195bfdb75f5b9793891ede3ef 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997,1998,2000-2003,2005,2006,2007
+/* Copyright (C) 1997,1998,2000-2003,2005,2006,2007,2011
    Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Thorsten Kukuk <kukuk@suse.de>, 1997.
@@ -40,10 +40,10 @@ static u_long tablename_len;
 
 
 #define NISENTRYVAL(idx, col, res) \
-        (NIS_RES_OBJECT (res)[idx].zo_data.objdata_u.en_data.en_cols.en_cols_val[col].ec_value.ec_value_val)
+       (NIS_RES_OBJECT (res)[idx].zo_data.objdata_u.en_data.en_cols.en_cols_val[col].ec_value.ec_value_val)
 
 #define NISENTRYLEN(idx, col, res) \
-        (NIS_RES_OBJECT (res)[idx].zo_data.objdata_u.en_data.en_cols.en_cols_val[col].ec_value.ec_value_len)
+       (NIS_RES_OBJECT (res)[idx].zo_data.objdata_u.en_data.en_cols.en_cols_val[col].ec_value.ec_value_len)
 
 static int
 _nss_nisplus_parse_etherent (nis_result *result, struct etherent *ether,
@@ -136,7 +136,7 @@ _nss_nisplus_setetherent (int stayopen)
 
   __libc_lock_unlock (lock);
 
-  return NSS_STATUS_SUCCESS;
+  return status;
 }
 
 enum nss_status
index f256f3eb907152762f23dc81521e26c5cd2382ac..e41ffda51bbb740bca1a85bb0ff16698a6e75c15 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 2001, 2002, 2003, 2005, 2007
+/* Copyright (C) 1997, 2001, 2002, 2003, 2005, 2007, 2011
    Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1997.
@@ -57,7 +57,7 @@ _nss_nisplus_setspent (int stayopen)
 
   __libc_lock_unlock (lock);
 
-  return NSS_STATUS_SUCCESS;
+  return status;
 }
 
 enum nss_status
@@ -91,7 +91,7 @@ internal_nisplus_getspent_r (struct spwd *sp, char *buffer, size_t buflen,
        {
          saved_res = NULL;
 
-          if (pwd_tablename_val == NULL)
+         if (pwd_tablename_val == NULL)
            {
              enum nss_status status = _nss_pwd_create_tablename (errnop);