Blame SOURCES/glibc-rh1505492-undef-27.patch

00db10
commit 2aac0a862334f3370a7e0b6bc7a53cf0ab847182
00db10
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
00db10
Date:   Thu Jun 26 14:10:07 2014 +0530
00db10
00db10
    Fix Wundef warning for SEPARATE_KEY
00db10
    
00db10
    The SEPARATE_KEY macro is never defined in any condition or
00db10
    architecture.  It is effectively dead code, so remove it.
00db10
00db10
diff --git a/nscd/connections.c b/nscd/connections.c
00db10
index 57cb8c180e8e6402..53813cf58876eae7 100644
00db10
--- a/nscd/connections.c
00db10
+++ b/nscd/connections.c
00db10
@@ -317,12 +317,6 @@ enum usekey
00db10
     use_he = 1,
00db10
     use_he_begin = use_he | use_begin,
00db10
     use_he_end = use_he | use_end,
00db10
-#if SEPARATE_KEY
00db10
-    use_key = 2,
00db10
-    use_key_begin = use_key | use_begin,
00db10
-    use_key_end = use_key | use_end,
00db10
-    use_key_first = use_key_begin | use_first,
00db10
-#endif
00db10
     use_data = 3,
00db10
     use_data_begin = use_data | use_begin,
00db10
     use_data_end = use_data | use_end,
00db10
@@ -471,16 +465,7 @@ verify_persistent_db (void *mem, struct database_pers_head *readhead, int dbnr)
00db10
 	  if (here->key < here->packet + sizeof (struct datahead)
00db10
 	      || here->key > here->packet + dh->allocsize
00db10
 	      || here->key + here->len > here->packet + dh->allocsize)
00db10
-	    {
00db10
-#if SEPARATE_KEY
00db10
-	      /* If keys can appear outside of data, this should be done
00db10
-		 instead.  But gc doesn't mark the data in that case.  */
00db10
-	      if (! check_use (data, head->first_free, usemap,
00db10
-			       use_key | (here->first ? use_first : 0),
00db10
-			       here->key, here->len))
00db10
-#endif
00db10
-		goto fail;
00db10
-	    }
00db10
+	    goto fail;
00db10
 
00db10
 	  work = here->next;
00db10
 
00db10
@@ -500,10 +485,6 @@ verify_persistent_db (void *mem, struct database_pers_head *readhead, int dbnr)
00db10
      he->first == true hashentry.  */
00db10
   for (ref_t idx = 0; idx < head->first_free; ++idx)
00db10
     {
00db10
-#if SEPARATE_KEY
00db10
-      if (usemap[idx] == use_key_begin)
00db10
-	goto fail;
00db10
-#endif
00db10
       if (usemap[idx] == use_data_begin)
00db10
 	goto fail;
00db10
     }