Avoid a warning on some platforms
This commit is contained in:
parent
84669c1793
commit
8361170957
@ -895,7 +895,8 @@ static char * _request_attention_message_send(ModemPlugin * modem,
|
|||||||
pdulen-=2;
|
pdulen-=2;
|
||||||
/* FIXME really issue using two separate commands */
|
/* FIXME really issue using two separate commands */
|
||||||
if(ret != NULL)
|
if(ret != NULL)
|
||||||
snprintf(ret, len, "%s%lu\r\n%s", cmd, (pdulen - 1) / 2, pdu);
|
snprintf(ret, len, "%s%lu\r\n%s", cmd, ((unsigned long)pdulen
|
||||||
|
- 1) / 2, pdu);
|
||||||
free(pdu);
|
free(pdu);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user