1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

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 <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Volker Lendecke 2014-07-29 11:22:09 +00:00 committed by Michael Adam
parent 222996931d
commit 3349c566a5

View File

@ -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