]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
EDNS: type mismatch on min() ssize_t / int
authorAmos Jeffries <amosjeffries@squid-cache.org>
Sun, 17 Oct 2010 05:24:33 +0000 (23:24 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Sun, 17 Oct 2010 05:24:33 +0000 (23:24 -0600)
lib/rfc2671.c

index 10f6eb13595b85cbae1d95c935ace32b84b29ac0..f33503138da83ad03ea2560b5e56630dbaa9e587 100644 (file)
@@ -11,7 +11,7 @@ rfc2671RROptPack(char *buf, size_t sz, ssize_t edns_sz)
     // EDNS OPT record says only what our DNS buffer size is so far.
     snprintf(opt.name, RFC1035_MAXHOSTNAMESZ, ".");
     opt.type = RFC1035_TYPE_OPT;
-    opt._class = min(edns_sz, SQUID_UDP_SO_RCVBUF-1);
+    opt._class = min(edns_sz, (ssize_t)SQUID_UDP_SO_RCVBUF-1);
     opt.ttl = 0; // relevant?
     opt.rdata = NULL;
     opt.rdlength = 0;