diff options
author | Yang Tse <yangsita@gmail.com> | 2012-03-22 02:40:19 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-03-22 04:54:04 +0100 |
commit | 3c80309c276b8ceac13ab1a4824d216805d45afe (patch) | |
tree | 663336bf7af75d2ccc6a36a4bcace3d22ae45e54 /tests/libtest/lib571.c | |
parent | c83de6d07625b813e3bbc31f9a0827c3a0007355 (diff) |
fix several compiler warnings
Diffstat (limited to 'tests/libtest/lib571.c')
-rw-r--r-- | tests/libtest/lib571.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/libtest/lib571.c b/tests/libtest/lib571.c index c5f7240d0..ba0aa1ce4 100644 --- a/tests/libtest/lib571.c +++ b/tests/libtest/lib571.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -39,6 +39,7 @@ #include <curl/mprintf.h> +#include "warnless.h" #include "memdebug.h" #define RTP_PKT_CHANNEL(p) ((int)((unsigned char)((p)[1]))) @@ -54,12 +55,14 @@ static int rtp_packet_count = 0; static size_t rtp_write(void *ptr, size_t size, size_t nmemb, void *stream) { char *data = (char *)ptr; int channel = RTP_PKT_CHANNEL(data); - int message_size = (int)(size * nmemb) - 4; + int message_size; int coded_size = RTP_PKT_LENGTH(data); size_t failure = (size * nmemb) ? 0 : 1; int i; (void)stream; + message_size = curlx_uztosi(size * nmemb) - 4; + printf("RTP: message size %d, channel %d\n", message_size, channel); if(message_size != coded_size) { printf("RTP embedded size (%d) does not match the write size (%d).\n", |