From a79bd334d7e17ece4fe4564b52efa3cc9c299a31 Mon Sep 17 00:00:00 2001 From: mux Date: Sat, 2 Nov 2002 20:16:35 +0000 Subject: [PATCH] Fix some warnings on 64 bit architectures. The vn_extattr_get() function takes an int * parameter, not a size_t * parameter. Arguably, it should rather take a size_t *, but that would require changing the uio_resid field of struct uio to be a size_t instead of an int, which I don't want to do that close to 5.0-RELEASE. Reviewed by: rwatson --- sys/security/mac_biba/mac_biba.c | 3 +-- sys/security/mac_mls/mac_mls.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/security/mac_biba/mac_biba.c b/sys/security/mac_biba/mac_biba.c index f60028edfc81..4dd9d9a273f2 100644 --- a/sys/security/mac_biba/mac_biba.c +++ b/sys/security/mac_biba/mac_biba.c @@ -925,8 +925,7 @@ mac_biba_associate_vnode_extattr(struct mount *mp, struct label *fslabel, struct vnode *vp, struct label *vlabel) { struct mac_biba temp, *source, *dest; - size_t buflen; - int error; + int buflen, error; source = SLOT(fslabel); dest = SLOT(vlabel); diff --git a/sys/security/mac_mls/mac_mls.c b/sys/security/mac_mls/mac_mls.c index 329c85b8f33b..ac0b108b9d28 100644 --- a/sys/security/mac_mls/mac_mls.c +++ b/sys/security/mac_mls/mac_mls.c @@ -894,8 +894,7 @@ mac_mls_associate_vnode_extattr(struct mount *mp, struct label *fslabel, struct vnode *vp, struct label *vlabel) { struct mac_mls temp, *source, *dest; - size_t buflen; - int error; + int buflen, error; source = SLOT(fslabel); dest = SLOT(vlabel);