From 3e4448fa1cdd67f2844f976b27677821a4411ea8 Mon Sep 17 00:00:00 2001 From: billf Date: Thu, 28 Jan 1999 20:17:32 +0000 Subject: 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. --- usr.sbin/pkg_install/add/main.c | 4 ++-- 1 file 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(""); } -- cgit v1.1