xatonum.h: add comment
[oweals/busybox.git] / networking / dnsd.c
index 32166e555bf58cf3e5b0a9ee92e066b5cc98640f..8f01d5c06f2b0738cc28fb422deb4d2810777821 100644 (file)
@@ -328,7 +328,7 @@ static void interrupt(int x)
        exit(2);
 }
 
-int dnsd_main(int argc, char **argv);
+int dnsd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int dnsd_main(int argc, char **argv)
 {
        const char *listen_interface = "0.0.0.0";
@@ -338,7 +338,7 @@ int dnsd_main(int argc, char **argv)
        uint16_t port = 53;
        uint8_t buf[MAX_PACK_LEN];
 
-       getopt32(argc, argv, "i:c:t:p:dv", &listen_interface, &fileconf, &sttl, &sport);
+       getopt32(argv, "i:c:t:p:dv", &listen_interface, &fileconf, &sttl, &sport);
        //if (option_mask32 & 0x1) // -i
        //if (option_mask32 & 0x2) // -c
        if (option_mask32 & 0x4) // -t
@@ -375,7 +375,7 @@ int dnsd_main(int argc, char **argv)
        xbind(udps, &lsa->sa, lsa->len);
        /* xlisten(udps, 50); - ?!! DGRAM sockets are never listened on I think? */
        bb_info_msg("Accepting UDP packets on %s",
-                       xmalloc_sockaddr2dotted(&lsa->sa, lsa->len));
+                       xmalloc_sockaddr2dotted(&lsa->sa));
 
        while (1) {
                int r;