diff options
author | Volker Lendecke <vl@samba.org> | 2014-07-29 11:22:09 +0000 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-07-31 18:49:46 +0200 |
commit | 3349c566a5346ba0a3187bd424cb48fc28c57922 (patch) | |
tree | 3724df0896e7b94c059418b80bacef26bc9b02ef /lib/util | |
parent | 222996931d5ef8661ec69f34a9a0e2f4e8a980fb (diff) | |
download | samba-3349c566a5346ba0a3187bd424cb48fc28c57922.tar.gz samba-3349c566a5346ba0a3187bd424cb48fc28c57922.tar.xz samba-3349c566a5346ba0a3187bd424cb48fc28c57922.zip |
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>
Diffstat (limited to 'lib/util')
-rw-r--r-- | lib/util/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |