summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2016-10-13 11:18:50 +0200
committerJeremy Allison <jra@samba.org>2016-10-14 01:47:21 +0200
commitfb7e36728e4e1055c5aee34f99c1dcbc1c0a9449 (patch)
treec0e986aa60ba90d3154c00290b68e439b3ee768f /lib
parent22c92294ad06a1e3421cc66a11c6530675121ccf (diff)
downloadsamba-fb7e36728e4e1055c5aee34f99c1dcbc1c0a9449.tar.gz
debug: Fix a few signed/unsigned hickups
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/util/debug.c7
1 files 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