X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/fb901bf5198d9d29014068dcd8a29c72d90f5eac..1ec6769606f155e156ecbe1a69b97ecd89bbdb7c:/src/event.c diff --git a/src/event.c b/src/event.c index 29d50a0..f1d22dc 100644 --- a/src/event.c +++ b/src/event.c @@ -10,7 +10,7 @@ * * It is part of adns, which is * Copyright (C) 1997-2000 Ian Jackson - * Copyright (C) 1999 Tony Finch + * Copyright (C) 1999-2000 Tony Finch * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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) {