Warning be gone!
authorJoshua Colp <jcolp@digium.com>
Tue, 17 Oct 2006 21:09:49 +0000 (21:09 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 17 Oct 2006 21:09:49 +0000 (21:09 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@45398 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/manager.c

index 606dafc..309a3fc 100644 (file)
@@ -202,8 +202,9 @@ AST_MUTEX_DEFINE_STATIC(actionlock);
 /*! \brief Convert authority code to a list of options */
 static char *authority_to_str(int authority, char *res, int reslen)
 {
-       int i, len = reslen;
+       int i;
        char *dst = res, *sep = "";
+       size_t len = reslen;
 
        res[0] = '\0';
        for (i = 0; i < (sizeof(perms) / sizeof(perms[0])) - 1; i++) {