diff options
author | 2002-09-08 22:01:50 +0000 | |
---|---|---|
committer | 2002-09-08 22:01:50 +0000 | |
commit | 1c774745252682aa558af73b6f6e931ae6074ab7 (patch) | |
tree | 46b40259603628aa83b5b6173a6bfd64976faad3 | |
parent | no comma at end of enumerator list (diff) | |
download | wireguard-openbsd-1c774745252682aa558af73b6f6e931ae6074ab7.tar.xz wireguard-openbsd-1c774745252682aa558af73b6f6e931ae6074ab7.zip |
Avoid ordered comparison between pointers and integers (ANSI).
ok deraadt@, espie@
-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)); |