diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -20,13 +20,6 @@ #include <poll.h> /* poll(2) */ #include "domain2name.c" #include "host.c" -#define MIN(a,b) ((a) < (b) ? (a) : (b)) -#define MAX(a,b) ((a) > (b) ? (a) : (b)) -#define MAXDOMAIN 255 -#define QUERYDOMAIN "http://sijanec.eu/link?r=.sijanec.eu." -#define EXPECTEDA 93.103.235.126 -#define XSTR(x) #x -#define STR(x) XSTR(x) #define HELP "find recursive DNS resolvers on IPv4 networks\n" \ "%s [-a ip] [-b ip] [-d domain] [-eh] [-o file] [-p port] [-t μs] [-w μs] net1 [net2 ...]\n" \ " -a Specify the IPv4 of the -d domain to be used instead of getaddrinfo(3).\n" \ @@ -270,7 +263,7 @@ int logudp (int o /* fd */, struct sockaddr_in s, struct sockaddr_in d, char * u c = (char *) memcpy(c, &n, 2) + 2; c = (char *) memcpy(c, u, l) + l; if (write(o, b, LOGUDP_L) == -1) { /* atomic and thread safe, as per posix */ - perror("write(" STR(LOGUDP_L) ")"); + perror("write(o, b, LOGUDP_L)"); return -3; } return LOGUDP_L; |