From: Volker Lendecke Date: Wed, 25 Apr 2018 09:51:36 +0000 (+0200) Subject: lib: Remove an #include "includes.h" X-Git-Tag: ldb-1.5.0~216 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a91ba4f7eacf2a2043068c3680a3bc47fb5d26c;p=thirdparty%2Fsamba.git lib: Remove an #include "includes.h" Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/lib/cbuf.c b/source3/lib/cbuf.c index 426ecdb5a3b..de0518d31d8 100644 --- a/source3/lib/cbuf.c +++ b/source3/lib/cbuf.c @@ -27,8 +27,12 @@ */ -#include "includes.h" +#include "replace.h" +#include "system/locale.h" #include "cbuf.h" +#include +#include +#include "lib/util/byteorder.h" struct cbuf { @@ -307,7 +311,9 @@ int cbuf_print_quoted(cbuf* ost, const char* s, size_t len) if (isprint(*s) && ((*s == ' ') || !isspace(*s))) { ret = cbuf_putc(ost, *s); } else { - ret = cbuf_printf(ost, "\\%02x", (uchar)*s); + ret = cbuf_printf(ost, + "\\%02x", + (unsigned char)*s); } } s++;