From: Terry Wilson Date: Wed, 25 May 2011 00:49:10 +0000 (+0000) Subject: Cast data as char * before using S_OR X-Git-Tag: 1.8.5-rc1~11^2~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5427820aaf3fe60540946cc5cb90d17659e33993;p=thirdparty%2Fasterisk.git Cast data as char * before using S_OR 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 --- diff --git a/addons/chan_mobile.c b/addons/chan_mobile.c index dbe20ee0a5..34d93016da 100644 --- a/addons/chan_mobile.c +++ b/addons/chan_mobile.c @@ -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);