mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-29 07:24:55 +00:00
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
This commit is contained in:
@@ -1188,7 +1188,7 @@ static int mbl_devicestate(void *data)
|
|||||||
int res = AST_DEVICE_INVALID;
|
int res = AST_DEVICE_INVALID;
|
||||||
struct mbl_pvt *pvt;
|
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);
|
ast_debug(1, "Checking device state for device %s\n", device);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user