about summary refs log tree commit diff
path: root/resolv/res_debug.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-06-25 13:56:54 +0000
committerRoland McGrath <roland@gnu.org>1996-06-25 13:56:54 +0000
commita4242e25dcf614b1eeb827e96d6d3c9f503f519d (patch)
tree196aefc5baa5ebcb6c9fe2000989c60d75a5c3d9 /resolv/res_debug.c
parent5325738ce48c95194c496ed230d0c84aa00ccb45 (diff)
downloadglibc-a4242e25dcf614b1eeb827e96d6d3c9f503f519d.tar.gz
glibc-a4242e25dcf614b1eeb827e96d6d3c9f503f519d.tar.xz
glibc-a4242e25dcf614b1eeb827e96d6d3c9f503f519d.zip
Tue Jun 25 09:55:47 1996 David Mosberger-Tang <davidm@AZStarNet.com>
	* catgets/gencat.c (write_out): Use %Zu to print variables of type
 	size_t.
	* resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
	cast it to (unsigned long) to make it work both on 32 and 64
	bit architectures.

Sat Jun 22 13:05:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

	* locale/Makefile (distribute): Add `programs/' prefix to all
	files in that directory.

	* Makerules (distinfo-vars): Assign subdir directly so that `ifdef
	subdir' works.

	* MakeTAGS (sources, headers): Make them simply expanded variables
	so that all-dist is expanded before it is changed.
Diffstat (limited to 'resolv/res_debug.c')
-rw-r--r--resolv/res_debug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/resolv/res_debug.c b/resolv/res_debug.c
index 4cbed577f8..62cd81cd0f 100644
--- a/resolv/res_debug.c
+++ b/resolv/res_debug.c
@@ -689,8 +689,9 @@ __p_rr(cp, msg, file)
 	putc('\n', file);
 #endif
 	if (cp - cp1 != dlen) {
-		fprintf(file, ";; packet size error (found %d, dlen was %d)\n",
-			cp - cp1, dlen);
+		fprintf(file,
+			";; packet size error (found %lu, dlen was %d)\n",
+			(unsigned long) (cp - cp1), dlen);
 		cp = NULL;
 	}
 	return (cp);