diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-18 14:39:45 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-19 12:01:57 -0400 |
commit | 1b5ad16c7aa7177512ce141e345ff36b9f1a6136 (patch) | |
tree | b3f5c02a9175cf216fc7ccfff586b7d0ca5924a0 | |
parent | 1eae20c1d40acf7676aa799b48f747d9b28bf352 (diff) |
perf tools: Ditch unused strchrnul() reimplementation
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>
-rw-r--r-- | tools/perf/util/util.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index d79f3c23dd02..2a1166f8bb37 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h | |||
@@ -56,22 +56,6 @@ void set_warning_routine(void (*routine)(const char *err, va_list params)); | |||
56 | int prefixcmp(const char *str, const char *prefix); | 56 | int prefixcmp(const char *str, const char *prefix); |
57 | void set_buildid_dir(const char *dir); | 57 | void set_buildid_dir(const char *dir); |
58 | 58 | ||
59 | #ifdef __GLIBC_PREREQ | ||
60 | #if __GLIBC_PREREQ(2, 1) | ||
61 | #define HAVE_STRCHRNUL | ||
62 | #endif | ||
63 | #endif | ||
64 | |||
65 | #ifndef HAVE_STRCHRNUL | ||
66 | #define strchrnul gitstrchrnul | ||
67 | static inline char *gitstrchrnul(const char *s, int c) | ||
68 | { | ||
69 | while (*s && *s != c) | ||
70 | s++; | ||
71 | return (char *)s; | ||
72 | } | ||
73 | #endif | ||
74 | |||
75 | static inline void *zalloc(size_t size) | 59 | static inline void *zalloc(size_t size) |
76 | { | 60 | { |
77 | return calloc(1, size); | 61 | return calloc(1, size); |