summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-06-15 00:26:41 +0000
committerpeter <peter@FreeBSD.org>2001-06-15 00:26:41 +0000
commitc87a44114a6f650a31f96fd93b7da023a0b18fd4 (patch)
tree5af5694aa94587b46ade2173173480fc025b1147
parentea6e16bc20e4706c99c89ec7b7f3ab3be1791a4c (diff)
downloadFreeBSD-src-c87a44114a6f650a31f96fd93b7da023a0b18fd4.zip
FreeBSD-src-c87a44114a6f650a31f96fd93b7da023a0b18fd4.tar.gz
Fix warning: 128: warning: initialization makes pointer from integer
Note: this file has lots of #if __FreeBSD__ >= 4 etc which needs to be changed to __FreeBSD_version >= 400000 etc.
-rw-r--r--sys/dev/usb/urio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/urio.c b/sys/dev/usb/urio.c
index 4cb4dff..da01d6d 100644
--- a/sys/dev/usb/urio.c
+++ b/sys/dev/usb/urio.c
@@ -124,7 +124,10 @@ Static struct cdevsw urio_cdevsw = {
urioopen, urioclose, urioread, uriowrite,
urioioctl, nopoll, nommap, nostrategy,
"urio", URIO_CDEV_MAJOR,nodump, nopsize,
- 0, -1
+ 0,
+#if (__FreeBSD__ < 5)
+ -1
+#endif
};
#define RIO_UE_GET_DIR(p) ((UE_GET_DIR(p) == UE_DIR_IN) ? RIO_IN :\
((UE_GET_DIR(p) == UE_DIR_OUT) ? RIO_OUT :\
OpenPOWER on IntegriCloud