Both had copies originating from git.git, move those to tools/lib/string.c, getting both tools/lib/subcmd/ and tools/perf/ to use it.
Showing the changes to tools/include/linux/string.h (1 of 7 files). Show all
Unified · Split
| @@ -18,4 +18,6 @@ extern size_t strlcpy(char *dest, const char *src, size_t size); · 17 unmodified lines | |||
| 18 | 18 | ||
| 19 | char *str_error_r(int errnum, char *buf, size_t buflen); | 19 | char *str_error_r(int errnum, char *buf, size_t buflen); |
| 20 | 20 | ||
| 21 | int prefixcmp(const char *str, const char *prefix); | ||
| 22 | |||
| 21 | #endif /* _LINUX_STRING_H_ */ | 23 | #endif /* _LINUX_STRING_H_ */ |