- Lauri
>From e59f7b87f56925ae49c95639828b230d0e3bac25 Mon Sep 17 00:00:00 2001
From: Lauri Kasanen <[email protected]>
Date: Wed, 13 Jun 2012 18:32:03 +0300
Subject: [PATCH 2/2] auth: Remove one signed-unsigned warning, we know sep is 
positive at that point


Signed-off-by: Lauri Kasanen <[email protected]>
---
 plugins/auth/auth.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/auth/auth.c b/plugins/auth/auth.c
index 152fb7a..d5fc824 100644
--- a/plugins/auth/auth.c
+++ b/plugins/auth/auth.c
@@ -70,7 +70,7 @@ static int mk_auth_validate_user(struct users_file *users,
     }
 
     sep = mk_api->str_search_n((char *) decoded, ":", 1, auth_len);
-    if (sep == -1 || sep == 0  || sep == auth_len - 1) {
+    if (sep == -1 || sep == 0  || (unsigned int) sep == auth_len - 1) {
         return -1;
     }
     
-- 
1.7.2.1

_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to