X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Ftsearch.c;h=086ef53862a310d10b311e29f18937ac56afb5d3;hb=b344de996cd51f8a2f2558a3172016b64d99c622;hp=a2e053aa53ee1236da07bbefe5b244518c8d2f1c;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/lib/tsearch.c b/lib/tsearch.c index a2e053aa5..086ef5386 100644 --- a/lib/tsearch.c +++ b/lib/tsearch.c @@ -1,4 +1,5 @@ -/* Copyright (C) 1995-1997, 2000, 2006-2007 Free Software Foundation, Inc. +/* Copyright (C) 1995-1997, 2000, 2006-2007, 2009-2011 Free Software + Foundation, Inc. Contributed by Bernd Schmidt , 1997. NOTE: The canonical source of this file is maintained with the GNU C @@ -86,6 +87,10 @@ #include +/* Don't use __attribute__ __nonnull__ in this compilation unit. Otherwise gcc + optimizes away the rootp == NULL tests below. */ +#define _GL_ARG_NONNULL(params) + /* Specification. */ #ifdef IN_LIBINTL # include "tsearch.h" @@ -157,7 +162,7 @@ check_tree (node root) if (root == NULL) return; root->red = 0; - for(p = root->left; p; p = p->left) + for (p = root->left; p; p = p->left) cnt += !p->red; check_tree_recurse (root, 0, cnt); }