aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_misc.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1996-03-19 15:03:00 +0000
committerBruce Evans <bde@FreeBSD.org>1996-03-19 15:03:00 +0000
commitede8dc43a2624d29d33de0a0bbdd0990d978b7c3 (patch)
tree832a264c27be21f32c4604bbdcf83739414789f3 /sys/compat/linux/linux_misc.c
parenta119b8be786157a09088f83a27fed26244b7df77 (diff)
downloadsrc-ede8dc43a2624d29d33de0a0bbdd0990d978b7c3.tar.gz
src-ede8dc43a2624d29d33de0a0bbdd0990d978b7c3.zip
Fixed unsigned longs that should have been vm_offset_t.
vm_offset_t is currently unsigned long but should probably be plain unsigned for i386's to match the choice of minimal types to represent for fixed-width types in Lite2. Anyway, it shouldn't be assumed to be unsigned long. I only fixed the type mismatches that were detected when I changed vm_offset_t to unsigned. Only pointer type mismatches were detected.
Notes
Notes: svn path=/head/; revision=14703
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r--sys/compat/linux/linux_misc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index c78b6b9251bc..6f8ec9e9e048 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: linux_misc.c,v 1.15 1996/03/10 23:25:17 peter Exp $
+ * $Id: linux_misc.c,v 1.16 1996/03/12 06:20:14 peter Exp $
*/
#include <sys/param.h>
@@ -165,8 +165,10 @@ linux_uselib(struct proc *p, struct linux_uselib_args *args, int *retval)
struct vnode *vp;
struct exec *a_out;
struct vattr attr;
- unsigned long vmaddr, file_offset;
- unsigned long buffer, bss_size;
+ vm_offset_t vmaddr;
+ unsigned long file_offset;
+ vm_offset_t buffer;
+ unsigned long bss_size;
char *ptr;
int error;
caddr_t sg;