diff options
author | jkh <jkh@FreeBSD.org> | 1995-08-26 10:15:18 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-08-26 10:15:18 +0000 |
commit | a1d19165970b1e7f3102db493e239ac11a657298 (patch) | |
tree | 31d831e9d819c7b603ec330c5873176e7014f739 /usr.sbin/pkg_install | |
parent | 8dfac6ca2063e862c2dc7b5e7643401fd7a12db7 (diff) | |
download | FreeBSD-src-a1d19165970b1e7f3102db493e239ac11a657298.zip FreeBSD-src-a1d19165970b1e7f3102db493e239ac11a657298.tar.gz |
Use size_t properly in all fs size ops. This kills a bug
encountered by someone who had his /tmp on a partition with 3.7GB of
free space!
Spotted by: Francisco Rosich Viana <rosich@power.ci.uv.es>
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r-- | usr.sbin/pkg_install/lib/lib.h | 4 | ||||
-rw-r--r-- | usr.sbin/pkg_install/lib/msg.c | 4 | ||||
-rw-r--r-- | usr.sbin/pkg_install/lib/pen.c | 4 |
3 files changed, 5 insertions, 7 deletions
diff --git a/usr.sbin/pkg_install/lib/lib.h b/usr.sbin/pkg_install/lib/lib.h index 4f80cee..a5c2fa5 100644 --- a/usr.sbin/pkg_install/lib/lib.h +++ b/usr.sbin/pkg_install/lib/lib.h @@ -1,4 +1,4 @@ -/* $Id: lib.h,v 1.16 1995/04/26 15:08:22 jkh Exp $ */ +/* $Id: lib.h,v 1.17 1995/07/30 01:44:45 ache Exp $ */ /* * FreeBSD install - a package for the installation and maintainance @@ -109,7 +109,7 @@ void cleanup(int); char *make_playpen(char *, size_t); void leave_playpen(void); char *where_playpen(void); -long min_free(char *); +size_t min_free(char *); /* String */ char *get_dash_string(char **); diff --git a/usr.sbin/pkg_install/lib/msg.c b/usr.sbin/pkg_install/lib/msg.c index 460183e..d95e498 100644 --- a/usr.sbin/pkg_install/lib/msg.c +++ b/usr.sbin/pkg_install/lib/msg.c @@ -1,5 +1,5 @@ #ifndef lint -static const char *rcsid = "$Id: msg.c,v 1.4 1994/06/01 05:14:19 asami Exp $"; +static const char *rcsid = "$Id: msg.c,v 1.5 1995/05/30 03:50:06 rgrimes Exp $"; #endif /* @@ -99,5 +99,3 @@ y_or_n(Boolean def, const char *msg, ...) fclose(tty) ; return (ch == 'Y') ? TRUE : FALSE; } - - diff --git a/usr.sbin/pkg_install/lib/pen.c b/usr.sbin/pkg_install/lib/pen.c index febf265..b084cad 100644 --- a/usr.sbin/pkg_install/lib/pen.c +++ b/usr.sbin/pkg_install/lib/pen.c @@ -1,5 +1,5 @@ #ifndef lint -static const char *rcsid = "$Id: pen.c,v 1.14 1995/08/06 03:21:04 jkh Exp $"; +static const char *rcsid = "$Id: pen.c,v 1.15 1995/08/17 00:36:06 jkh Exp $"; #endif /* @@ -118,7 +118,7 @@ where_playpen(void) return NULL; } -long +size_t min_free(char *tmpdir) { struct statfs buf; |