[multicat-devel] [Git][videolan/multicat][master] 2 commits: multilive: remove useless code

Christophe Massiot (@cmassiot) gitlab at videolan.org
Sat Dec 7 12:44:29 UTC 2024



Christophe Massiot pushed to branch master at VideoLAN / multicat


Commits:
391f494c by Arnaud de Turckheim at 2024-12-03T12:36:36+01:00
multilive: remove useless code

- - - - -
7ddbb066 by Christophe Massiot at 2024-12-07T13:44:17+01:00
Merge branch 'quarium-multilive-useless-code'

- - - - -


1 changed file:

- multilive.c


Changes:

=====================================
multilive.c
=====================================
@@ -62,8 +62,6 @@
 
 #define NL_BUFFER 4096
 
-#define CASE_STR(Value) case Value: return #Value
-
 struct source {
     uint32_t id;
     uint64_t last_notified;
@@ -332,8 +330,6 @@ static int peer_get_link(struct peer *peer)
         return -1;
 
     int ifindex = 0;
-    struct ifaddrs *ifa;
-    getifaddrs(&ifa);
     if (peer->input) {
         char *saveptr;
         strtok_r(args, "/", &saveptr);
@@ -365,7 +361,6 @@ static int peer_get_link(struct peer *peer)
             ifindex = in_addr_get_ifindex(&in_addr);
         }
     }
-    freeifaddrs(ifa);
     free(args);
 
     return ifindex;



View it on GitLab: https://code.videolan.org/videolan/multicat/-/compare/ab22f5a4f59e73b45cfc2c26f6428ca59b53ed1d...7ddbb066db5e89bb9bf09483f76fe5ca10fbc46f

-- 
View it on GitLab: https://code.videolan.org/videolan/multicat/-/compare/ab22f5a4f59e73b45cfc2c26f6428ca59b53ed1d...7ddbb066db5e89bb9bf09483f76fe5ca10fbc46f
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the multicat-devel mailing list