]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Cast data as char * before using S_OR
authorTerry Wilson <twilson@digium.com>
Wed, 25 May 2011 00:49:10 +0000 (00:49 +0000)
committerTerry Wilson <twilson@digium.com>
Wed, 25 May 2011 00:49:10 +0000 (00:49 +0000)
This is required for compiling successfully under dev mode

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@320716 65c4cc65-6c06-0410-ace0-fbb531ad65f3

addons/chan_mobile.c

index dbe20ee0a5cbed854810b3b677b840645dccc2b9..34d93016dae8bf93b94559b8a26575fd8b81e36d 100644 (file)
@@ -1188,7 +1188,7 @@ static int mbl_devicestate(void *data)
        int res = AST_DEVICE_INVALID;
        struct mbl_pvt *pvt;
 
-       device = ast_strdupa(S_OR(data, ""));
+       device = ast_strdupa(S_OR((char *) data, ""));
 
        ast_debug(1, "Checking device state for device %s\n", device);