Clear compiler & sparse warnings

void.c:41:9: warning: preprocessor token NEED_XF86_TYPES redefined
/usr/X11R7/include/xorg/xorg-server.h:69:9: this was the original definition
void.c:298:35: warning: Using plain integer as NULL pointer
This commit is contained in:
Alan Coopersmith
2007-09-07 09:48:34 -07:00
parent 3b25347c21
commit 1d64a7f636

View File

@@ -38,7 +38,7 @@
#include <misc.h>
#include <xf86.h>
#define NEED_XF86_TYPES
#define NEED_XF86_TYPES 1
#if !defined(DGUX)
#include <xisb.h>
#endif
@@ -295,7 +295,7 @@ xf86VoidInit(InputDriverPtr drv,
pInfo->fd = -1;
pInfo->dev = NULL;
pInfo->private_flags = 0;
pInfo->always_core_feedback = 0;
pInfo->always_core_feedback = NULL;
pInfo->conf_idev = dev;
/* Collect the options, and process the common options. */