clients/playrtp.c: Make the `getaddrinfo' hints structure writable.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 4 May 2020 17:27:19 +0000 (18:27 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 5 May 2020 22:18:28 +0000 (23:18 +0100)
I'm going to want to update this -- specifically the `ai_family' member
-- according to things I find at runtime.

clients/playrtp.c

index b5da73f..eda7ce9 100644 (file)
@@ -704,7 +704,7 @@ int main(int argc, char **argv) {
   int monitor = 0;
   static const int one = 1;
 
-  static const struct addrinfo prefs = {
+  struct addrinfo prefs = {
     .ai_flags = AI_PASSIVE,
     .ai_family = PF_INET,
     .ai_socktype = SOCK_DGRAM,