Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1626446 > unrolled thread

[PATCH 28/28] perf tools: Ditch unused strchrnul() reimplementation

Started byArnaldo Carvalho de Melo <acme@kernel.org>
First post2017-04-19 18:20 +0200
Last post2017-04-19 18:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 28/28] perf tools: Ditch unused strchrnul() reimplementation Arnaldo Carvalho de Melo <acme@kernel.org> - 2017-04-19 18:20 +0200

#1626446 — [PATCH 28/28] perf tools: Ditch unused strchrnul() reimplementation

FromArnaldo Carvalho de Melo <acme@kernel.org>
Date2017-04-19 18:20 +0200
Subject[PATCH 28/28] perf tools: Ditch unused strchrnul() reimplementation
Message-ID<ty0uL-5Cb-43@gated-at.bofh.it>
From: Arnaldo Carvalho de Melo <acme@redhat.com>

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 | 16 ----------------
 1 file changed, 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));
 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);
-- 
2.9.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web