]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fs_cli: fix 32 bits compile
authorMathieu Rene <mrene@avgs.ca>
Tue, 15 Dec 2009 14:58:20 +0000 (14:58 +0000)
committerMathieu Rene <mrene@avgs.ca>
Tue, 15 Dec 2009 14:58:20 +0000 (14:58 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15966 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/esl/fs_cli.c

index d56e5a207d92780e4454bf723842f4f14a16ea0c..41ac4f4c99d4e71f3a98e72076c333fd07f2bd85 100644 (file)
@@ -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);
        }