summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/add
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>1999-08-11 20:55:42 +0000
committerbillf <billf@FreeBSD.org>1999-08-11 20:55:42 +0000
commita66efa8a50ef6e86cfd5a817c3a780eb7aabcb6f (patch)
treeda1f219cf87766dbc52ec8825d8c42d04d25af94 /usr.sbin/pkg_install/add
parentd19c9420bdbe3994d009eae3c7fd581d485f3917 (diff)
downloadFreeBSD-src-a66efa8a50ef6e86cfd5a817c3a780eb7aabcb6f.zip
FreeBSD-src-a66efa8a50ef6e86cfd5a817c3a780eb7aabcb6f.tar.gz
-Wall fixes. Ambigious if/elses, uninitialized values, missing headers,
missing prototypes, and empty format strings.
Diffstat (limited to 'usr.sbin/pkg_install/add')
-rw-r--r--usr.sbin/pkg_install/add/perform.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/pkg_install/add/perform.c b/usr.sbin/pkg_install/add/perform.c
index 3b5df61..84d4c23 100644
--- a/usr.sbin/pkg_install/add/perform.c
+++ b/usr.sbin/pkg_install/add/perform.c
@@ -1,6 +1,6 @@
#ifndef lint
static const char rcsid[] =
- "$Id: perform.c,v 1.53 1998/09/11 07:26:54 jkh Exp $";
+ "$Id: perform.c,v 1.54 1998/12/16 13:59:29 jkh Exp $";
#endif
/*
@@ -131,7 +131,7 @@ pkg_do(char *pkg)
}
Home = make_playpen(playpen, sb.st_size * 4);
if (!Home)
- errx(1, "unable to make playpen for %d bytes", sb.st_size * 4);
+ errx(1, "unable to make playpen for %qd bytes", sb.st_size * 4);
where_to = Home;
/* Since we can call ourselves recursively, keep notes on where we came from */
if (!getenv("_TOP"))
@@ -185,7 +185,7 @@ pkg_do(char *pkg)
*/
if (!inPlace && min_free(playpen) < sb.st_size * 4) {
- warnx("projected size of %d exceeds available free space.\n"
+ warnx("projected size of %qd exceeds available free space.\n"
"Please set your PKG_TMPDIR variable to point to a location with more\n"
"free space and try again", sb.st_size * 4);
warnx("not extracting %s\ninto %s, sorry!",
@@ -330,8 +330,8 @@ pkg_do(char *pkg)
if (fexists(POST_INSTALL_FNAME)) {
new_m = 1;
sprintf(post_script, "%s", POST_INSTALL_FNAME);
- sprintf(pre_arg, "");
- sprintf(post_arg, "");
+ pre_arg[0] = '\0';
+ post_arg[0] = '\0';
} else {
if (fexists(INSTALL_FNAME)) {
sprintf(post_script, "%s", INSTALL_FNAME);
OpenPOWER on IntegriCloud