From 00b226bfe48faba2ab8c74cae5eeff564969d03a Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 5 Dec 2011 16:42:46 +1030 Subject: lib/ccan/str: fix warnings. Firstly, -Wwrite-strings makes string literals const, secondly, we mustn't define str_strstr etc in terms of themselves! Signed-off-by: Rusty Russell (Imported from CCAN commit 0845e79650c9257aa0ddef8ff99fd815b5edffac) --- lib/ccan/str/debug.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/ccan/str/debug.c') diff --git a/lib/ccan/str/debug.c b/lib/ccan/str/debug.c index 9ef756766a..027915bc64 100644 --- a/lib/ccan/str/debug.c +++ b/lib/ccan/str/debug.c @@ -86,6 +86,9 @@ int str_isxdigit(int i) return isxdigit(i); } +#undef strstr +#undef strchr +#undef strrchr char *str_strstr(const char *haystack, const char *needle) { -- cgit