X-Git-Url: https://git.saurik.com/apple/libinfo.git/blobdiff_plain/c29f2fccbf0d388644e29ea3e98c38a343688bd2..84e6ee29846bd48cc36d74aeb5c13c52a59c5a55:/dns.subproj/res_debug.c diff --git a/dns.subproj/res_debug.c b/dns.subproj/res_debug.c index ba2cfb4..bf83730 100644 --- a/dns.subproj/res_debug.c +++ b/dns.subproj/res_debug.c @@ -477,7 +477,7 @@ __p_rr(cp, msg, file) FILE *file; { int type, class, n, c; - long dlen; + int dlen; struct in_addr inaddr; const u_char *cp1, *cp2; u_int32_t tmpttl, t; @@ -704,8 +704,11 @@ __p_rr(cp, msg, file) putc('\n', file); #endif if (cp - cp1 != dlen) { - fprintf(file, ";; packet size error (found %ld, dlen was %ld)\n", - cp - cp1, dlen); +#ifdef __LP64__ + fprintf(file, ";; packet size error (found %ld, dlen was %d)\n", cp - cp1, dlen); +#else + fprintf(file, ";; packet size error (found %d, dlen was %d)\n", cp - cp1, dlen); +#endif cp = NULL; } return (cp);