]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
perf tools: Ditch unused strchrnul() reimplementation
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 18 Apr 2017 18:39:45 +0000 (15:39 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 19 Apr 2017 16:01:57 +0000 (13:01 -0300)
Remnants from the git codebase.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-kwaez3uxo1w9f8v5r7etl0w6@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/util.h

index d79f3c23dd0209b9e9563ba4c6120d2e1a1ebad4..2a1166f8bb378cdceaabc8ad405be3d0be6967de 100644 (file)
@@ -56,22 +56,6 @@ void set_warning_routine(void (*routine)(const char *err, va_list params));
 int prefixcmp(const char *str, const char *prefix);
 void set_buildid_dir(const char *dir);
 
-#ifdef __GLIBC_PREREQ
-#if __GLIBC_PREREQ(2, 1)
-#define HAVE_STRCHRNUL
-#endif
-#endif
-
-#ifndef HAVE_STRCHRNUL
-#define strchrnul gitstrchrnul
-static inline char *gitstrchrnul(const char *s, int c)
-{
-       while (*s && *s != c)
-               s++;
-       return (char *)s;
-}
-#endif
-
 static inline void *zalloc(size_t size)
 {
        return calloc(1, size);