X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=ortp_send.c;h=9095a8f87272a5d1ae26ae8c6f0a42cae0a4aa41;hp=0bccca98f8f844981dceb86a0b3e8fedc2cc425d;hb=ce5417393696b1e5b9964418e0f6938b1dc09e9b;hpb=471684761a2039bbc89aa1e3c33c62de6bef86cf diff --git a/ortp_send.c b/ortp_send.c index 0bccca98..9095a8f8 100644 --- a/ortp_send.c +++ b/ortp_send.c @@ -10,6 +10,8 @@ #include #include "server.cmdline.h" +#include "para.h" +#include "afh.h" #include "server.h" #include "vss.h" #include "send.h" @@ -159,7 +161,7 @@ static void ortp_send(long unsigned current_chunk, long unsigned chunks_sent, { 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; @@ -287,7 +289,7 @@ static void ortp_init_target_list(void) if (!p) goto err; *p = '\0'; - if (!inet_aton(arg, &addr)) + if (!inet_pton(AF_INET, arg, &addr)) goto err; port = atoi(++p); if (port < 0 || port > 65535)