From 82ac6194aef5319d5ee7f17e36505977d70dc30c Mon Sep 17 00:00:00 2001 From: fvdl Date: Tue, 21 Oct 2003 02:48:07 +0000 Subject: [PATCH] Don't compare an int to NULL. --- usr.sbin/pkg_install/delete/perform.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/pkg_install/delete/perform.c b/usr.sbin/pkg_install/delete/perform.c index 6f3379dd1205..9ce4467c65eb 100644 --- a/usr.sbin/pkg_install/delete/perform.c +++ b/usr.sbin/pkg_install/delete/perform.c @@ -1,11 +1,11 @@ -/* $NetBSD: perform.c,v 1.49 2003/09/23 14:23:53 wiz Exp $ */ +/* $NetBSD: perform.c,v 1.50 2003/10/21 02:48:07 fvdl Exp $ */ #include #ifndef lint #if 0 static const char *rcsid = "from FreeBSD Id: perform.c,v 1.15 1997/10/13 15:03:52 jkh Exp"; #else -__RCSID("$NetBSD: perform.c,v 1.49 2003/09/23 14:23:53 wiz Exp $"); +__RCSID("$NetBSD: perform.c,v 1.50 2003/10/21 02:48:07 fvdl Exp $"); #endif #endif @@ -618,7 +618,7 @@ pkg_do(char *pkg) TAILQ_INIT(&trypkgs); snprintf(try, FILENAME_MAX, "%s-[0-9]*", pkg); if (findmatchingname(_pkgdb_getPKGDB_DIR(), try, - add_to_list_fn, &trypkgs) == NULL) { + add_to_list_fn, &trypkgs) == 0) { warnx("package '%s' not installed", pkg); return 1; }