summaryrefslogtreecommitdiffstats
path: root/fortune
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1997-10-19 17:54:18 +0000
committermycroft <mycroft@NetBSD.org>1997-10-19 17:54:18 +0000
commit1a42f2efb90085739090202bc48bccbcb7a1acdb (patch)
treea30bd92a388eaa39aca320d9b213816b7af12ea6 /fortune
parent84e7d0704483ce39bbdeacd5e676168db6fa664f (diff)
downloadbsdgames-darwin-1a42f2efb90085739090202bc48bccbcb7a1acdb.tar.gz
bsdgames-darwin-1a42f2efb90085739090202bc48bccbcb7a1acdb.tar.zst
bsdgames-darwin-1a42f2efb90085739090202bc48bccbcb7a1acdb.zip
Use S_IS*(), not S_IF*.
Diffstat (limited to 'fortune')
-rw-r--r--fortune/fortune/fortune.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fortune/fortune/fortune.c b/fortune/fortune/fortune.c
index 16f14bdb..e1d7dda0 100644
--- a/fortune/fortune/fortune.c
+++ b/fortune/fortune/fortune.c
@@ -1,4 +1,4 @@
-/* $NetBSD: fortune.c,v 1.10 1997/10/12 14:17:27 lukem Exp $ */
+/* $NetBSD: fortune.c,v 1.11 1997/10/19 17:58:53 mycroft Exp $ */
/*-
* Copyright (c) 1986, 1993
@@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1986, 1993\n\
#if 0
static char sccsid[] = "@(#)fortune.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: fortune.c,v 1.10 1997/10/12 14:17:27 lukem Exp $");
+__RCSID("$NetBSD: fortune.c,v 1.11 1997/10/19 17:58:53 mycroft Exp $");
#endif
#endif /* not lint */
@@ -727,7 +727,7 @@ is_dir(file)
if (stat(file, &sbuf) < 0)
return FALSE;
- return (sbuf.st_mode & S_IFDIR);
+ return (S_ISDIR(sbuf.st_mode));
}
/*