diff options
author | bde <bde@FreeBSD.org> | 1998-07-15 02:32:35 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-07-15 02:32:35 +0000 |
commit | 863d5c8b6850a65e8b4e00a7b23bbd29bd466602 (patch) | |
tree | 503589837ac05f783d5305211b0f41aed97e2041 /sys/fs/specfs/spec_vnops.c | |
parent | b99f2f9d598baa39c296f1cf2d910a1f7e138bb1 (diff) | |
download | FreeBSD-src-863d5c8b6850a65e8b4e00a7b23bbd29bd466602.zip FreeBSD-src-863d5c8b6850a65e8b4e00a7b23bbd29bd466602.tar.gz |
Cast pointers to uintptr_t/intptr_t instead of to u_long/long,
respectively. Most of the longs should probably have been
u_longs, but this changes is just to prevent warnings about
casts between pointers and integers of different sizes, not
to fix poorly chosen types.
Diffstat (limited to 'sys/fs/specfs/spec_vnops.c')
-rw-r--r-- | sys/fs/specfs/spec_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c index cb9a120..7f05eb2 100644 --- a/sys/fs/specfs/spec_vnops.c +++ b/sys/fs/specfs/spec_vnops.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)spec_vnops.c 8.14 (Berkeley) 5/21/95 - * $Id: spec_vnops.c,v 1.65 1998/07/04 22:30:23 julian Exp $ + * $Id: spec_vnops.c,v 1.66 1998/07/11 07:45:48 bde Exp $ */ #include <sys/param.h> @@ -430,7 +430,7 @@ spec_ioctl(ap) ap->a_fflag, ap->a_p)); case VBLK: - if (ap->a_command == 0 && (long)ap->a_data == B_TAPE) + if (ap->a_command == 0 && (intptr_t)ap->a_data == B_TAPE) if ((bdevsw[major(dev)]->d_flags & D_TYPEMASK) == D_TAPE) return (0); |