diff options
author | Thierry Deval <tdeval@cvs.openbsd.org> | 2002-09-08 22:01:51 +0000 |
---|---|---|
committer | Thierry Deval <tdeval@cvs.openbsd.org> | 2002-09-08 22:01:51 +0000 |
commit | ab90b187fb0156e6fa66274f1a4449b7e4579d18 (patch) | |
tree | 41b208d4f3e1bac6d915bcfb2323b8ecbf389f62 /usr.sbin/pkg_install/add | |
parent | 8d96f3ab736fef5e0063ed960fc2e389d556c533 (diff) |
Avoid ordered comparison between pointers and integers (ANSI).
ok deraadt@, espie@
Diffstat (limited to 'usr.sbin/pkg_install/add')
-rw-r--r-- | usr.sbin/pkg_install/add/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/add/main.c b/usr.sbin/pkg_install/add/main.c index b7ca89ff9e3..b2f1178d740 100644 --- a/usr.sbin/pkg_install/add/main.c +++ b/usr.sbin/pkg_install/add/main.c @@ -1,7 +1,7 @@ -/* $OpenBSD: main.c,v 1.14 2002/02/16 21:28:06 millert Exp $ */ +/* $OpenBSD: main.c,v 1.15 2002/09/08 22:01:50 tdeval Exp $ */ #ifndef lint -static char *rcsid = "$OpenBSD: main.c,v 1.14 2002/02/16 21:28:06 millert Exp $"; +static char *rcsid = "$OpenBSD: main.c,v 1.15 2002/09/08 22:01:50 tdeval Exp $"; #endif /* @@ -148,7 +148,8 @@ main(int argc, char **argv) } else if (ispkgpattern(*argv) && (s=findbestmatchingname(dirname_of(*argv), - basename_of(*argv))) > 0) { + basename_of(*argv))) + != NULL) { if (Verbose) printf("Using %s for %s\n",s, *argv); pkgs[ch] = (char *) malloc(MAXPATHLEN * sizeof(char)); |