From 7d6ff98fc64d8616f5bf75fcd8ea0153b59fd819 Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Tue, 15 Dec 2009 14:58:20 +0000 Subject: [PATCH] fs_cli: fix 32 bits compile git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15966 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/esl/fs_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/esl/fs_cli.c b/libs/esl/fs_cli.c index d56e5a207d..41ac4f4c99 100644 --- a/libs/esl/fs_cli.c +++ b/libs/esl/fs_cli.c @@ -437,7 +437,7 @@ static unsigned char complete(EditLine * el, int ch) unsigned char ret = CC_REDISPLAY; if (*lf->cursor) { - snprintf(cmd_str, sizeof(cmd_str), "api console_complete c=%ld;%s\n\n", lf->cursor - lf->buffer, lf->buffer); + snprintf(cmd_str, sizeof(cmd_str), "api console_complete c=%ld;%s\n\n", (long int)(lf->cursor - lf->buffer), lf->buffer); } else { snprintf(cmd_str, sizeof(cmd_str), "api console_complete %s\n\n", lf->buffer); }