lib: Remove an #include "includes.h"
authorVolker Lendecke <vl@samba.org>
Wed, 25 Apr 2018 09:51:36 +0000 (11:51 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 24 Jul 2018 18:36:49 +0000 (20:36 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/cbuf.c

index 426ecdb5a3beae8d7b8447f24f66d2cf0164043b..de0518d31d8216c6296e40622f12c401f61cfbbd 100644 (file)
  */
 
 
-#include "includes.h"
+#include "replace.h"
+#include "system/locale.h"
 #include "cbuf.h"
+#include <talloc.h>
+#include <assert.h>
+#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++;