Getting rid of some warnings

This commit is contained in:
Pierre Pronchery 2010-08-13 13:21:49 +00:00
parent 406286ee59
commit 4d2a888e81
2 changed files with 7 additions and 5 deletions

View File

@ -1096,7 +1096,8 @@ static int _gsm_parse(GSM * gsm)
char * p; char * p;
#ifdef DEBUG #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 #endif
while(i < gsm->rd_buf_cnt) 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'; b[i] = '\0';
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "DEBUG: %s(\"%s\", %lu) => \"%s\"\n", __func__, number, fprintf(stderr, "DEBUG: %s(\"%s\", %lu) => \"%s\"\n", __func__, number,
length, b); (unsigned long)length, b);
#endif #endif
} }
@ -2328,7 +2329,8 @@ static gboolean _on_watch_can_write(GIOChannel * source, GIOCondition condition,
unsigned int timeout = 2000; unsigned int timeout = 2000;
#ifdef DEBUG #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 #endif
if(condition != G_IO_OUT || source != gsm->channel) if(condition != G_IO_OUT || source != gsm->channel)
return FALSE; /* should not happen */ return FALSE; /* should not happen */

View File

@ -199,7 +199,7 @@ static int _smscrypt_event_sms_receiving(PhonePlugin * plugin,
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "DEBUG: %s(%u, buf, %lu)\n", __func__, *encoding, fprintf(stderr, "DEBUG: %s(%u, buf, %lu)\n", __func__, *encoding,
*len); (unsigned long)*len);
#endif #endif
if(*encoding != PHONE_ENCODING_DATA) if(*encoding != PHONE_ENCODING_DATA)
return 0; /* not for us */ return 0; /* not for us */
@ -232,7 +232,7 @@ static int _smscrypt_event_sms_sending(PhonePlugin * plugin,
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "DEBUG: %s(\"%s\", %u, buf, %lu)\n", __func__, number, fprintf(stderr, "DEBUG: %s(\"%s\", %u, buf, %lu)\n", __func__, number,
*encoding, *len); (unsigned)*encoding, (unsigned long)*len);
#endif #endif
if(*encoding != PHONE_ENCODING_UTF8) if(*encoding != PHONE_ENCODING_UTF8)
return 0; /* not for us */ return 0; /* not for us */