]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
ortp_send.c: fix a gcc warning
authorAndre Noll <maan@systemlinux.org>
Wed, 4 Jul 2007 14:41:01 +0000 (16:41 +0200)
committerAndre Noll <maan@systemlinux.org>
Wed, 4 Jul 2007 14:41:01 +0000 (16:41 +0200)
ortp_send.c:187: warning: passing argument 1 of 'vss_get_header' from incompatible pointer type

because vss_get_header expects an unsigned and we were passing a
size_t which is a different type e.g. for ppc.

ortp_send.c

index 0bccca98f8f844981dceb86a0b3e8fedc2cc425d..18b5edd345fe66c048ee1dc0f2eaa4911e617fbe 100644 (file)
@@ -159,7 +159,7 @@ static void ortp_send(long unsigned current_chunk, long unsigned chunks_sent,
 {
        struct ortp_target *ot, *tmp;
        size_t sendbuf_len;
 {
        struct ortp_target *ot, *tmp;
        size_t sendbuf_len;
-       size_t header_len = 0;
+       unsigned header_len = 0;
        int packet_type = ORTP_DATA;
        char *sendbuf, *header_buf = NULL;
        struct timeval *chunk_tv;
        int packet_type = ORTP_DATA;
        char *sendbuf, *header_buf = NULL;
        struct timeval *chunk_tv;