summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-03-09 04:29:00 +0000
committerjb <jb@FreeBSD.org>1998-03-09 04:29:00 +0000
commite08356d7d1b7d193a1d58dcc25d58978cafd01f9 (patch)
treefb8c8068fb35b2a1e2bde6ac749f24f14b7dae9e /lib/libc/gen
parentb4375c6592bc9083fdc9b47bbe7245b1cd2cae4f (diff)
downloadFreeBSD-src-e08356d7d1b7d193a1d58dcc25d58978cafd01f9.zip
FreeBSD-src-e08356d7d1b7d193a1d58dcc25d58978cafd01f9.tar.gz
Cast pointer to a long instead of an int to keep a 64-bit compiler
happy. The code works either way, but I like a clean compile.
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/opendir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/opendir.c b/lib/libc/gen/opendir.c
index 119791f..73da108 100644
--- a/lib/libc/gen/opendir.c
+++ b/lib/libc/gen/opendir.c
@@ -191,7 +191,7 @@ __opendir2(name, flags)
struct dirent *dp;
dp = (struct dirent *) ddptr;
- if ((int)dp & 03)
+ if ((long)dp & 03L)
break;
if ((dp->d_reclen <= 0) ||
(dp->d_reclen > (ddeptr + 1 - ddptr)))
OpenPOWER on IntegriCloud