]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Fix compiler warnings: 70/head
authorsdigit <gitmoney@endersgame.net>
Sat, 11 Apr 2015 20:40:13 +0000 (15:40 -0500)
committersdigit <gitmoney@endersgame.net>
Sat, 11 Apr 2015 20:40:13 +0000 (15:40 -0500)
1) implicit declaration due to lacking stdlib.h
2) const/const char mixing

mdns_dns_sd.c

index b83435a4f411199ed3f789ef3650eaf0b41b99c1..bbd42ca2c214fff0a98bbcea866c4103d28621ad 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <dns_sd.h>
 #include <string.h>
+#include <stdlib.h>
 #include "mdns.h"
 #include "common.h"
 
@@ -33,7 +34,7 @@ static DNSServiceRef service;
 
 static int mdns_dns_sd_register(char *apname, int port) {
     const char *recordwithoutmetadata[] = { MDNS_RECORD_WITHOUT_METADATA, NULL };
-    char **record = recordwithoutmetadata;
+    const char **record = recordwithoutmetadata;
        
     uint16_t length = 0;
     const char **field;