summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2005-02-20 09:17:25 +0000
committergrant <grant@pkgsrc.org>2005-02-20 09:17:25 +0000
commitdaa5a43372fc04415366c1034eedb0fb01b006a2 (patch)
treeada16c14dd2fda40428ea2bf02da3190e96abcea /pkgtools/pkg_install
parente52a4d26ee3865d329f00f7c51a05cbb920e628b (diff)
downloadpkgsrc-daa5a43372fc04415366c1034eedb0fb01b006a2.tar.gz
sync with src:
cast return value of min_free() to uint64_t. fixes pkg_add <binarypkg> on Solaris 8.
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r--pkgtools/pkg_install/files/lib/pen.c6
1 files changed, 3 insertions, 3 deletions
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;
}