diff options
Diffstat (limited to 'tools/perf')
| -rw-r--r-- | tools/perf/util/strbuf.c | 9 | ||||
| -rw-r--r-- | tools/perf/util/util.h | 2 |
2 files changed, 0 insertions, 11 deletions
diff --git a/tools/perf/util/strbuf.c b/tools/perf/util/strbuf.c index e91b5e86f027..aafe908b82b5 100644 --- a/tools/perf/util/strbuf.c +++ b/tools/perf/util/strbuf.c | |||
| @@ -3,15 +3,6 @@ | |||
| 3 | #include <linux/kernel.h> | 3 | #include <linux/kernel.h> |
| 4 | #include <errno.h> | 4 | #include <errno.h> |
| 5 | 5 | ||
| 6 | int prefixcmp(const char *str, const char *prefix) | ||
| 7 | { | ||
| 8 | for (; ; str++, prefix++) | ||
| 9 | if (!*prefix) | ||
| 10 | return 0; | ||
| 11 | else if (*str != *prefix) | ||
| 12 | return (unsigned char)*prefix - (unsigned char)*str; | ||
| 13 | } | ||
| 14 | |||
| 15 | /* | 6 | /* |
| 16 | * Used as the default ->buf value, so that people can always assume | 7 | * Used as the default ->buf value, so that people can always assume |
| 17 | * buf is non NULL and ->buf is NUL terminated even for a freshly | 8 | * buf is non NULL and ->buf is NUL terminated even for a freshly |
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index d620719775a8..5dfb9bb6482d 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h | |||
| @@ -30,8 +30,6 @@ void warning(const char *err, ...) __attribute__((format (printf, 1, 2))); | |||
| 30 | 30 | ||
| 31 | void set_warning_routine(void (*routine)(const char *err, va_list params)); | 31 | void set_warning_routine(void (*routine)(const char *err, va_list params)); |
| 32 | 32 | ||
| 33 | int prefixcmp(const char *str, const char *prefix); | ||
| 34 | |||
| 35 | static inline void *zalloc(size_t size) | 33 | static inline void *zalloc(size_t size) |
| 36 | { | 34 | { |
| 37 | return calloc(1, size); | 35 | return calloc(1, size); |
