From 4d2a888e81854861e2455933047a8dcc4f317ec7 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Fri, 13 Aug 2010 13:21:49 +0000 Subject: [PATCH] Getting rid of some warnings --- src/gsm.c | 8 +++++--- src/plugins/smscrypt.c | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/gsm.c b/src/gsm.c index afee219..00953a0 100644 --- a/src/gsm.c +++ b/src/gsm.c @@ -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 */ diff --git a/src/plugins/smscrypt.c b/src/plugins/smscrypt.c index 28ab6cf..01c76d1 100644 --- a/src/plugins/smscrypt.c +++ b/src/plugins/smscrypt.c @@ -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 */