]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
app_page was failing to compile in dev-mode on my gcc-4.2.4 system. This change gets...
authorSteve Murphy <murf@digium.com>
Wed, 14 Jan 2009 19:34:35 +0000 (19:34 +0000)
committerSteve Murphy <murf@digium.com>
Wed, 14 Jan 2009 19:34:35 +0000 (19:34 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@168608 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_page.c

index f93e5d7c37f33150a5e9a2a14bac54574acaa1db..c94e1b11a831a6eeba71f1ccd895ed90bba6be9a 100644 (file)
@@ -125,7 +125,7 @@ static int page_exec(struct ast_channel *chan, void *data)
        }
 
        if (!(dial_list = ast_calloc(num_dials, sizeof(void *)))) {
-               ast_log(LOG_ERROR, "Can't allocate %ld bytes for dial list\n", (sizeof(void *) * num_dials));
+               ast_log(LOG_ERROR, "Can't allocate %ld bytes for dial list\n", (long)(sizeof(void *) * num_dials));
                ast_module_user_remove(u);
                return -1;
        }