]> git.sesse.net Git - vlc/blobdiff - src/network/udp.c
Removes trailing spaces. Removes tabs.
[vlc] / src / network / udp.c
index a7aa0b3e396fc70ab601c2a0293cf4a6865ea369..9316cb4aa4130ef4524194c4423efb576a844be8 100644 (file)
@@ -183,7 +183,7 @@ static int net_SetMcastHopLimit( vlc_object_t *p_this,
 {
     int proto, cmd;
 
-    /* There is some confusion in the world whether IP_MULTICAST_TTL 
+    /* There is some confusion in the world whether IP_MULTICAST_TTL
      * takes a byte or an int as an argument.
      * BSD seems to indicate byte so we are going with that and use
      * int as a fallback to be safe */
@@ -516,7 +516,7 @@ net_SourceSubscribe (vlc_object_t *obj, int fd,
 
     msg_Dbg (obj, "Multicast %sgroup join request", src ? "source " : "");
 
-    if (setsockopt (fd, level, 
+    if (setsockopt (fd, level,
                     src ? MCAST_JOIN_SOURCE_GROUP : MCAST_JOIN_GROUP,
                     (void *)&opt, optlen) == 0)
         return 0;
@@ -877,10 +877,10 @@ int net_SetCSCov (int fd, int sendcov, int recvcov)
                             &sendcov, sizeof (sendcov)))
                 return VLC_EGENERIC;
 
-            if ((sendcov == -1) || (sendcov > 56))
-                sendcov = 0;
+            if ((recvcov == -1) || (recvcov > 56))
+                recvcov = 0;
             else
-                sendcov = (sendcov + 3) / 4;
+                recvcov = (recvcov + 3) / 4;
             if (setsockopt (fd, SOL_DCCP, DCCP_SOCKOPT_RECV_CSCOV,
                             &recvcov, sizeof (recvcov)))
                 return VLC_EGENERIC;