packet[index++] = tp_dcs;
}
/* TP-UDL */
+ /* This if statement couldn't be true because mask var is fixed to 0x69 on declaration.
if ( mask & 0x04)
{
submit_report.udl =0x00;
packet[index++] = submit_report.udl;
- /* TP-UD */
+ // TP-UD
if (submit_report.dcs.alphabetType == TAPI_NETTEXT_ALPHABET_DEFAULT )
{
//SmsUtilPackGSMCode( packet + index, msg, msg_len);
}
- }
+ } */
}
*rawdata_len = index;
// when the length is 1, there are the only type and plan.
if ( length > 1 )
{
- dialnumLen = ( pAddrField[index++] - 1 ) * 2; // -1 is for TON/API field.
+ dialnumLen = (int)( ( pAddrField[index++] - 1 ) * 2); // -1 is for TON/API field.
}
}
else
{
- dialnumLen = ( ( ( pAddrField[index++] + 1 ) / 2 ) * 8 ) / 7;
+ dialnumLen = (int)( ( ( ( pAddrField[index++] + 1 ) / 2 ) * 8 ) / 7);
}
if ( dialnumLen > SIM_SMSP_ADDRESS_LEN )
#git:slp/pkgs/v/vmodem-daemon-emulator
Name: vmodemd-emul
-Version: 0.2.50
+Version: 0.2.51
Release: 1
Summary: Modem Emulator
Group: System/ModemEmulator
char str[1000];
char str2[1000];
char * mesg;
- char tb_name[6];
+ char tb_name[7];
int flag=0;
SIM_DEBUG("\n");
if (n == 0)
{
- invoke_timeout(timeout_head);
+ if(timeout_head) {
+ invoke_timeout(timeout_head);
+ }
}
else if (n > 0)
{
TRACE(MSGL_VGSM_INFO, "Client fd %d server fd %d\n", client_fd, server->fd);
- if (client_fd > 0)
+ if (client_fd >= 0)
{
server->ci = malloc(sizeof (TClientInfo));
server->ci->Functions = NULL;
return 1;
*/
- if (client_fd > 0)
+ if (client_fd >= 0)
{
server->ci = malloc(sizeof (TClientInfo));
server->ci->Functions = NULL;