From b0f7704a3f5309b681ead7f6063498af356348b9 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Mon, 10 Nov 2008 14:56:33 +0000 Subject: [PATCH] Fix 64-bit warnings. --- bin/date/netdate.c | 4 ++-- bin/ps/print.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/date/netdate.c b/bin/date/netdate.c index d532c1ea92..c4f01c4782 100644 --- a/bin/date/netdate.c +++ b/bin/date/netdate.c @@ -32,7 +32,7 @@ * * @(#)netdate.c 8.1 (Berkeley) 5/31/93 * $FreeBSD: src/bin/date/netdate.c,v 1.18 2004/04/06 20:06:45 markm Exp $ - * $DragonFly: src/bin/date/netdate.c,v 1.7 2005/07/20 06:25:20 cpressey Exp $ + * $DragonFly: src/bin/date/netdate.c,v 1.8 2008/11/10 14:56:33 swildner Exp $ */ #include @@ -73,7 +73,7 @@ netsettime(time_t tval) fd_set ready; long waittime; int s, port, timed_ack, found, errn; - size_t length; + socklen_t length; char hostname[MAXHOSTNAMELEN]; if ((sp = getservbyname("timed", "udp")) == NULL) { diff --git a/bin/ps/print.c b/bin/ps/print.c index 1ad67cb91b..71510bd3c8 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -32,7 +32,7 @@ * * @(#)print.c 8.6 (Berkeley) 4/16/94 * $FreeBSD: src/bin/ps/print.c,v 1.36.2.4 2002/11/30 13:00:14 tjr Exp $ - * $DragonFly: src/bin/ps/print.c,v 1.33 2007/05/24 20:32:02 dillon Exp $ + * $DragonFly: src/bin/ps/print.c,v 1.34 2008/11/10 14:56:33 swildner Exp $ */ #include @@ -403,7 +403,7 @@ wchan(const KINFO *k, const struct varent *vent) void vsize(const KINFO *k, const struct varent *vent) { - printf("%*d", vent->width, (KI_PROC(k, vm_map_size)/1024)); + printf("%*ju", vent->width, (uintmax_t)(KI_PROC(k, vm_map_size)/1024)); } void -- 2.11.4.GIT