summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_syscalls.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-15 02:32:35 +0000
committerbde <bde@FreeBSD.org>1998-07-15 02:32:35 +0000
commit863d5c8b6850a65e8b4e00a7b23bbd29bd466602 (patch)
tree503589837ac05f783d5305211b0f41aed97e2041 /sys/kern/vfs_syscalls.c
parentb99f2f9d598baa39c296f1cf2d910a1f7e138bb1 (diff)
downloadFreeBSD-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/kern/vfs_syscalls.c')
-rw-r--r--sys/kern/vfs_syscalls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 4d7dff3..805afb9 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
- * $Id: vfs_syscalls.c,v 1.103 1998/06/08 18:18:28 dyson Exp $
+ * $Id: vfs_syscalls.c,v 1.104 1998/07/03 03:47:24 dg Exp $
*/
/* For 4.3 integer FS ID compatibility */
@@ -213,7 +213,7 @@ mount(p, uap)
* get an integer for the filesystem type instead of a string, we
* check to see if it matches one of the historic filesystem types.
*/
- fstypenum = (u_long)SCARG(uap, type);
+ fstypenum = (uintptr_t)SCARG(uap, type);
if (fstypenum < maxvfsconf) {
for (vfsp = vfsconf; vfsp; vfsp = vfsp->vfc_next)
if (vfsp->vfc_typenum == fstypenum)
OpenPOWER on IntegriCloud