aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-03-09 04:29:00 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-03-09 04:29:00 +0000
commit84d6500535a3d7d272ae6379908a34691b174db5 (patch)
tree3b3e68d3093cadc06f2e65923b4ac9fdfc042d06 /lib
parentdf320ec9d3c7219f13626087b753731afc987a4d (diff)
downloadsrc-84d6500535a3d7d272ae6379908a34691b174db5.tar.gz
src-84d6500535a3d7d272ae6379908a34691b174db5.zip
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.
Notes
Notes: svn path=/head/; revision=34357
Diffstat (limited to 'lib')
-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 119791fb4e59..73da108a991e 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)))