From 3349c566a5346ba0a3187bd424cb48fc28c57922 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 29 Jul 2014 11:22:09 +0000 Subject: debug: Remove a dependency on charconv util_str has: /* characters below 0x3F are guaranteed to not appear in non-initial position in multi-byte charsets */ if ((c & 0xC0) == 0) { return strrchr(s, c); } '/' is 0x2f, so there's no point in calling strrchr_m and thus pulling in a whole lot of stuff Signed-off-by: Volker Lendecke Reviewed-by: Michael Adam --- lib/util/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/util') diff --git a/lib/util/debug.c b/lib/util/debug.c index a2cb4ab45d..84b197cf60 100644 --- a/lib/util/debug.c +++ b/lib/util/debug.c @@ -498,7 +498,7 @@ void setup_logging(const char *prog_name, enum debug_logtype new_logtype) if (state.logtype == DEBUG_FILE) { #ifdef WITH_SYSLOG - const char *p = strrchr_m( prog_name,'/' ); + const char *p = strrchr(prog_name, '/'); if (p) prog_name = p + 1; #ifdef LOG_DAEMON -- cgit