From: Andre Noll Date: Tue, 22 Dec 2015 23:40:36 +0000 (+0000) Subject: udp_send.c: Remove pointless function. X-Git-Tag: v0.5.6~78 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=4bdc5ed1cffdfae4f594d4a35b3ac44e220ad543 udp_send.c: Remove pointless function. udp_init_session() has only one caller in the same file. --- diff --git a/udp_send.c b/udp_send.c index 3379f98d..faae208c 100644 --- a/udp_send.c +++ b/udp_send.c @@ -156,11 +156,6 @@ err: return -ERRNO_TO_PARA_ERROR(errno); } -static void udp_init_session(struct sender_client *sc) -{ - PARA_NOTICE_LOG("sending to udp %s\n", sc->name); -} - static void udp_shutdown_targets(void) { struct sender_client *sc, *tmp; @@ -239,7 +234,7 @@ static int udp_init_fec(struct sender_client *sc) { int mps; - udp_init_session(sc); + PARA_NOTICE_LOG("sending to udp %s\n", sc->name); mps = generic_max_transport_msg_size(sc->fd) - sizeof(struct udphdr); PARA_INFO_LOG("current MPS = %d bytes\n", mps); return mps;