Make func_env build again.
authorJoshua Colp <jcolp@digium.com>
Thu, 8 Nov 2007 21:27:37 +0000 (21:27 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 8 Nov 2007 21:27:37 +0000 (21:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89121 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_env.c

index e53cb53..fea94f2 100644 (file)
@@ -127,10 +127,10 @@ static int file_read(struct ast_channel *chan, const char *cmd, char *data, char
 
        if (args.argc > 2) {
                if ((length = atoi(args.length)) < 1) {
-                       ast_log(LOG_WARNING, "Invalid length '%s'.  Returning the max (%d)\n", args.length, len);
+                       ast_log(LOG_WARNING, "Invalid length '%s'.  Returning the max (%d)\n", args.length, (int)len);
                        length = len;
                } else if (length > len) {
-                       ast_log(LOG_WARNING, "Length %d is greater than the max (%d).  Truncating output.\n", length, len);
+                       ast_log(LOG_WARNING, "Length %d is greater than the max (%d).  Truncating output.\n", length, (int)len);
                        length = len;
                }
        } else