(submit/dix_typedef_fixes) dix: fix duplicate typedef of MotionTracker and *MotionTrackerPtr

fix warning on duplicate typedef:

> In file included from ../hw/xfree86/common/xf86Xinput.c:59:
> ../dix/ptrveloc_priv.h:33:3: warning: redefinition of typedef 'MotionTracker' is a C11 feature [-Wtypedef-redefinition]
> } MotionTracker, *MotionTrackerPtr;
>   ^
> ../include/ptrveloc.h:54:31: note: previous definition is here
> typedef struct _MotionTracker MotionTracker, *MotionTrackerPtr;
>                               ^

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-03-20 19:28:15 +01:00
parent cc8a5164c6
commit 514081d23a

View File

@ -18,11 +18,11 @@ struct _DeviceVelocityRec;
* calc mean velocity and decide which motion was along
* a more or less straight line
*/
typedef struct _MotionTracker {
struct _MotionTracker {
double dx, dy; /* accumulated delta for each axis */
int time; /* time of creation */
int dir; /* initial direction bitfield */
} MotionTracker, *MotionTrackerPtr;
};
/**
* contains the run-time data for the predictable scheme, that is, a