summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-01-15 17:58:28 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-01-15 17:58:28 +0000
commit706ffea399bee5559214bff24c14ea6c195b5d38 (patch)
tree27e9d18b3d0cb5affc0c3c02ca1a44ac3b4326ce /sys
parent064b522676820c7a5b2cea1df8fc7fba9438428a (diff)
cope with the int vs long changes to size_t
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/zaurus/stand/zbsdmod/compat_linux.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/zaurus/stand/zbsdmod/compat_linux.h b/sys/arch/zaurus/stand/zbsdmod/compat_linux.h
index 199ca6a6560..1fbe042a905 100644
--- a/sys/arch/zaurus/stand/zbsdmod/compat_linux.h
+++ b/sys/arch/zaurus/stand/zbsdmod/compat_linux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: compat_linux.h,v 1.4 2006/01/10 18:17:15 jolan Exp $ */
+/* $OpenBSD: compat_linux.h,v 1.5 2006/01/15 17:58:27 deraadt Exp $ */
/*
* Copyright (c) 2005 Uwe Stuehler <uwe@bsdx.de>
@@ -57,8 +57,8 @@ struct file;
struct inode;
typedef long loff_t;
-typedef int ssize_t;
-typedef unsigned int size_t;
+typedef long ssize_t;
+typedef unsigned long size_t;
struct file_operations {
struct module *owner;
@@ -87,7 +87,7 @@ struct file_operations {
extern struct file * open_exec(const char *);
extern void fput(struct file *);
extern int kernel_read(struct file *, unsigned long, char *, unsigned long);
-extern int memcmp(const void *, const void *, unsigned int);
+extern int memcmp(const void *, const void *, size_t);
extern int register_chrdev(unsigned int, const char *, struct file_operations *);
extern int unregister_chrdev(unsigned int, const char *);
extern void printk(const char *, ...);