udp_recv: Add missing line break in log messages.
authorAndre Noll <maan@systemlinux.org>
Mon, 11 Oct 2010 19:15:12 +0000 (21:15 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 11 Oct 2010 19:15:12 +0000 (21:15 +0200)
Also reduce the line length a bit and fix a whitespace issue.

udp_recv.c

index 8e2fcf2..f008f1e 100644 (file)
@@ -145,7 +145,8 @@ static int mcast_receiver_setup(int fd, const char *iface)
        assert(ss.ss_family == AF_INET || ss.ss_family == AF_INET6);
 
        if (iface != NULL && id == 0)
-               PARA_WARNING_LOG("could not resolve interface %s, using default", iface);
+               PARA_WARNING_LOG("could not resolve interface %s, using default\n",
+                       iface);
 
        switch (ss.ss_family) {
        case AF_INET:
@@ -160,12 +161,13 @@ static int mcast_receiver_setup(int fd, const char *iface)
 
                        m4.imr_interface.s_addr = INADDR_ANY;
                        if (id != 0)
-                               PARA_ERROR_LOG("Setting IPv4 receiver mcast interface not supported.");
+                               PARA_ERROR_LOG("Setting IPv4 receiver mcast interface not supported\n");
 
 #endif
-                       m4.imr_multiaddr        = ((struct sockaddr_in *)&ss)->sin_addr;
+                       m4.imr_multiaddr = ((struct sockaddr_in *)&ss)->sin_addr;
 
-                       if (setsockopt(fd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &m4, sizeof(m4)) < 0)
+                       if (setsockopt(fd, IPPROTO_IP, IP_ADD_MEMBERSHIP,
+                                       &m4, sizeof(m4)) < 0)
                                break;
                }
                return 0;