X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=udp_send.c;h=13d2a2ca20d52336f6743458cc4a060b8ec0ef36;hb=ed0c68b07ddbc130e033035baa1cc0862e511b46;hp=273b6a42e4c26e21abf4211a7e528ba5a7629a9c;hpb=b0d2e5f940e595486443700998d27053e462183a;p=paraslash.git diff --git a/udp_send.c b/udp_send.c index 273b6a42..13d2a2ca 100644 --- a/udp_send.c +++ b/udp_send.c @@ -160,7 +160,7 @@ static int udp_init_session(struct udp_target *ut) if (ut->fd >= 0) /* nothing to do */ return 0; - ret = makesock(AF_UNSPEC, IPPROTO_UDP, 0, ut->host, ut->port); + ret = makesock(AF_UNSPEC, IPPROTO_UDP, 0, ut->host, ut->port, NULL); if (ret < 0) return ret; ut->fd = ret; @@ -303,10 +303,10 @@ static char *udp_info(void) ret = make_message( "udp sender:\n" "\tstatus: %s\n" - "\tport: udp %d\n" + "\tport: %s\n" "\ttargets: %s\n", (sender_status == SENDER_ON)? "on" : "off", - conf.udp_default_port_arg, + stringify_port(conf.udp_default_port_arg, "udp"), tgts? tgts : "(none)" ); free(tgts);