From daa5a43372fc04415366c1034eedb0fb01b006a2 Mon Sep 17 00:00:00 2001 From: grant Date: Sun, 20 Feb 2005 09:17:25 +0000 Subject: sync with src: cast return value of min_free() to uint64_t. fixes pkg_add on Solaris 8. --- pkgtools/pkg_install/files/lib/pen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkgtools') diff --git a/pkgtools/pkg_install/files/lib/pen.c b/pkgtools/pkg_install/files/lib/pen.c index d16b18b4598..a93df09b6e0 100644 --- a/pkgtools/pkg_install/files/lib/pen.c +++ b/pkgtools/pkg_install/files/lib/pen.c @@ -1,4 +1,4 @@ -/* $NetBSD: pen.c,v 1.16 2004/12/29 12:16:56 agc Exp $ */ +/* $NetBSD: pen.c,v 1.17 2005/02/20 09:17:25 grant Exp $ */ #if HAVE_CONFIG_H #include "config.h" @@ -11,7 +11,7 @@ #if 0 static const char *rcsid = "from FreeBSD Id: pen.c,v 1.25 1997/10/08 07:48:12 charnier Exp"; #else -__RCSID("$NetBSD: pen.c,v 1.16 2004/12/29 12:16:56 agc Exp $"); +__RCSID("$NetBSD: pen.c,v 1.17 2005/02/20 09:17:25 grant Exp $"); #endif #endif @@ -217,5 +217,5 @@ min_free(char *tmpdir) warn("statvfs"); return 0; } - return buf.f_bavail * buf.f_bsize; + return (uint64_t)buf.f_bavail * buf.f_bsize; } -- cgit v1.2.3