From 4fd41a120c7b17fb0807a490d1d29aa6044e1f23 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sun, 26 Oct 2003 06:40:37 +0000 Subject: Fix previous commit. glob_filename() returns "(char **) -1" for certain errors, not necessarily a pointer such that (intptr_t)pointer is -1. Also fix the style bug that the cast was not followed by a space. This style of this file is now perfectly non-KNF for this cast too. --- gnu/usr.bin/man/man/man.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/usr.bin') diff --git a/gnu/usr.bin/man/man/man.c b/gnu/usr.bin/man/man/man.c index f34851a2345a..18005dfc036d 100644 --- a/gnu/usr.bin/man/man/man.c +++ b/gnu/usr.bin/man/man/man.c @@ -539,7 +539,7 @@ is_section (name, path) x = 0; vs = glob_filename (temp); - if ((intptr_t)vs == -1) + if (vs == (char **) -1) { free (temp); return NULL; -- cgit v1.3