From owner-cvs-all Sat May 12 2:44:38 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 304E037B424; Sat, 12 May 2001 02:44:33 -0700 (PDT) (envelope-from kris@FreeBSD.org) Received: (from kris@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4C9iX375145; Sat, 12 May 2001 02:44:33 -0700 (PDT) (envelope-from kris) Message-Id: <200105120944.f4C9iX375145@freefall.freebsd.org> From: Kris Kennaway Date: Sat, 12 May 2001 02:44:33 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/pkg_install/add main.c src/usr.sbin/pkg_install/lib lib.h str.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG kris 2001/05/12 02:44:33 PDT Modified files: usr.sbin/pkg_install/add main.c usr.sbin/pkg_install/lib lib.h str.c Log: Clean up some of the evil string handling in this code, replace warnx()+exit() with errx() and replace a big if..then..else construct to determine the package download directory with a lookup table. Reviewed by: jkh MFC after: 2 weeks Revision Changes Path 1.38 +76 -48 src/usr.sbin/pkg_install/add/main.c 1.35 +3 -1 src/usr.sbin/pkg_install/lib/lib.h 1.9 +15 -1 src/usr.sbin/pkg_install/lib/str.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message