From fb7e36728e4e1055c5aee34f99c1dcbc1c0a9449 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 13 Oct 2016 11:18:50 +0200 Subject: [PATCH] debug: Fix a few signed/unsigned hickups Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- lib/util/debug.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/util/debug.c b/lib/util/debug.c index ed899448f31..625d23a0a55 100644 --- a/lib/util/debug.c +++ b/lib/util/debug.c @@ -280,7 +280,7 @@ static struct debug_backend { static struct debug_backend *debug_find_backend(const char *name) { - int i; + unsigned i; for (i = 0; i < ARRAY_SIZE(debug_backends); i++) { if (strcmp(name, debug_backends[i].name) == 0) { @@ -348,7 +348,7 @@ static void debug_set_backends(const char *param) size_t str_len = strlen(param); char str[str_len+1]; char *tok, *saveptr; - int i; + unsigned i; /* * initialize new_log_level to detect backends that have been @@ -389,7 +389,8 @@ static void debug_set_backends(const char *param) static void debug_backends_log(const char *msg, int msg_level) { char msg_no_nl[FORMAT_BUFR_SIZE]; - int i, len; + unsigned i; + int len; /* * Some backends already add an extra newline, so also provide -- 2.11.4.GIT