summaryrefslogtreecommitdiff
path: root/lib/memcasecmp.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-04-25 10:38:33 +0200
committerJim Meyering <meyering@redhat.com>2011-04-25 10:38:33 +0200
commit6829a6c0c428c91768aa4314752ba92b1340e11b (patch)
treec7efb647d10854ee2fe46ca33b3f74f177f1d799 /lib/memcasecmp.c
parentea868d4a150963fafb230c888dc093a2e06a3613 (diff)
downloadgnulib-6829a6c0c428c91768aa4314752ba92b1340e11b.tar.gz
Revert "use _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE"
This reverts commit 349d7fe0e307d59d508b3579317ee8d4eacfeb9c. Revert accidentally-pushed patch. Not yet ready.
Diffstat (limited to 'lib/memcasecmp.c')
-rw-r--r--lib/memcasecmp.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/memcasecmp.c b/lib/memcasecmp.c
index b5c93fb4e6..6ae7c4f65d 100644
--- a/lib/memcasecmp.c
+++ b/lib/memcasecmp.c
@@ -24,19 +24,11 @@
#include <ctype.h>
#include <limits.h>
-/* The attribute __pure__ was added in gcc 2.96. */
-#undef _GL_ATTRIBUTE_PURE
-#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
-# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
-#else
-# define _GL_ATTRIBUTE_PURE /* empty */
-#endif
-
/* Like memcmp, but ignore differences in case.
Convert to upper case (not lower) before comparing so that
join -i works with sort -f. */
-int _GL_ATTRIBUTE_PURE
+int
memcasecmp (const void *vs1, const void *vs2, size_t n)
{
size_t i;