chiark / gitweb /
+ Bugfixes:
[adns.git] / src / event.c
index 29d50a0cf6e8817476d4a300f400e1a99e85e1b0..684759a727f2cfa5c2e390978950ec49f6b7ac21 100644 (file)
@@ -395,7 +395,8 @@ int adns_processreadable(adns_state ads, int fd, const struct timeval *now) {
       }
       if (udpaddrlen != sizeof(udpaddr)) {
        adns__diag(ads,-1,0,"datagram received with wrong address length %d"
-                  " (expected %d)", udpaddrlen,sizeof(udpaddr));
+                  " (expected %lu)", udpaddrlen,
+                  (unsigned long)sizeof(udpaddr));
        continue;
       }
       if (udpaddr.sin_family != AF_INET) {