From 1d63bf5236bbb32b88cc1f715244f5e6ab14a4ec Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Fri, 15 Jun 2001 00:26:41 +0000 Subject: [PATCH] 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. --- sys/dev/usb/urio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/usb/urio.c b/sys/dev/usb/urio.c index 4cb4dffbcd99..da01d6d3fe04 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 :\