summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>1999-01-28 20:17:32 +0000
committerbillf <billf@FreeBSD.org>1999-01-28 20:17:32 +0000
commit3e4448fa1cdd67f2844f976b27677821a4411ea8 (patch)
treeb0b36f21717835e475ee88d8b90d34f51c791e50 /usr.sbin
parent86eed8a334dbab8b6db1e28171f8c24a5ee6e1b1 (diff)
downloadFreeBSD-src-3e4448fa1cdd67f2844f976b27677821a4411ea8.zip
FreeBSD-src-3e4448fa1cdd67f2844f976b27677821a4411ea8.tar.gz
Fix nasty bug where getpackagesite() will return an integer if it doesn't
know what revision of FreeBSD is being run. This case should never happen, but just in case.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_install/add/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/add/main.c b/usr.sbin/pkg_install/add/main.c
index dbee418..002222f 100644
--- a/usr.sbin/pkg_install/add/main.c
+++ b/usr.sbin/pkg_install/add/main.c
@@ -1,6 +1,6 @@
#ifndef lint
static const char rcsid[] =
- "$Id: main.c,v 1.21 1999/01/25 21:08:13 billf Exp $";
+ "$Id: main.c,v 1.22 1999/01/26 22:31:23 billf Exp $";
#endif
/*
@@ -198,7 +198,7 @@ getpackagesite(char binform[1024])
return !strcmp(binform, "elf") ? "i386/packages-3-stable/Latest/" :
"i386/packages-3.0-aout/Latest/";
- return(0);
+ return("");
}
OpenPOWER on IntegriCloud