diff options
Diffstat (limited to 'tools/perf/util/util.h')
-rw-r--r-- | tools/perf/util/util.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index 52118a0c0bad..45b9655f3a5c 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h | |||
@@ -179,16 +179,8 @@ static inline char *gitstrchrnul(const char *s, int c) | |||
179 | * Wrappers: | 179 | * Wrappers: |
180 | */ | 180 | */ |
181 | extern char *xstrdup(const char *str); | 181 | extern char *xstrdup(const char *str); |
182 | extern void *xmalloc(size_t size) __attribute__((weak)); | ||
183 | extern char *xstrndup(const char *str, size_t len); | ||
184 | extern void *xrealloc(void *ptr, size_t size) __attribute__((weak)); | 182 | extern void *xrealloc(void *ptr, size_t size) __attribute__((weak)); |
185 | 183 | ||
186 | static inline void *xzalloc(size_t size) | ||
187 | { | ||
188 | void *buf = xmalloc(size); | ||
189 | |||
190 | return memset(buf, 0, size); | ||
191 | } | ||
192 | 184 | ||
193 | static inline void *zalloc(size_t size) | 185 | static inline void *zalloc(size_t size) |
194 | { | 186 | { |