Getting rid of some warnings
This commit is contained in:
parent
406286ee59
commit
4d2a888e81
@ -1096,7 +1096,8 @@ static int _gsm_parse(GSM * gsm)
|
||||
char * p;
|
||||
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "DEBUG: %s() cnt=%lu\n", __func__, gsm->rd_buf_cnt);
|
||||
fprintf(stderr, "DEBUG: %s() cnt=%lu\n", __func__,
|
||||
(unsigned long)gsm->rd_buf_cnt);
|
||||
#endif
|
||||
while(i < gsm->rd_buf_cnt)
|
||||
{
|
||||
@ -1757,7 +1758,7 @@ static void _cmgr_pdu_parse_number(unsigned int type, char const * number,
|
||||
b[i] = '\0';
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "DEBUG: %s(\"%s\", %lu) => \"%s\"\n", __func__, number,
|
||||
length, b);
|
||||
(unsigned long)length, b);
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -2328,7 +2329,8 @@ static gboolean _on_watch_can_write(GIOChannel * source, GIOCondition condition,
|
||||
unsigned int timeout = 2000;
|
||||
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "DEBUG: %s() cnt=%lu\n", __func__, gsm->wr_buf_cnt);
|
||||
fprintf(stderr, "DEBUG: %s() cnt=%lu\n", __func__,
|
||||
(unsigned long)gsm->wr_buf_cnt);
|
||||
#endif
|
||||
if(condition != G_IO_OUT || source != gsm->channel)
|
||||
return FALSE; /* should not happen */
|
||||
|
@ -199,7 +199,7 @@ static int _smscrypt_event_sms_receiving(PhonePlugin * plugin,
|
||||
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "DEBUG: %s(%u, buf, %lu)\n", __func__, *encoding,
|
||||
*len);
|
||||
(unsigned long)*len);
|
||||
#endif
|
||||
if(*encoding != PHONE_ENCODING_DATA)
|
||||
return 0; /* not for us */
|
||||
@ -232,7 +232,7 @@ static int _smscrypt_event_sms_sending(PhonePlugin * plugin,
|
||||
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "DEBUG: %s(\"%s\", %u, buf, %lu)\n", __func__, number,
|
||||
*encoding, *len);
|
||||
(unsigned)*encoding, (unsigned long)*len);
|
||||
#endif
|
||||
if(*encoding != PHONE_ENCODING_UTF8)
|
||||
return 0; /* not for us */
|
||||
|
Loading…
Reference in New Issue
Block a user