From 62aa43a57158d84be55e7bbee12717d65442d98b Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 26 Oct 2003 06:40:37 +0000 Subject: [PATCH] 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(-) 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;