diff options
author | jb <jb@FreeBSD.org> | 1998-03-09 04:29:00 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-03-09 04:29:00 +0000 |
commit | e08356d7d1b7d193a1d58dcc25d58978cafd01f9 (patch) | |
tree | fb8c8068fb35b2a1e2bde6ac749f24f14b7dae9e /lib/libc/gen | |
parent | b4375c6592bc9083fdc9b47bbe7245b1cd2cae4f (diff) | |
download | FreeBSD-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.c | 2 |
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))) |