Use C99 conforming designated initialisers rather than the obsolete GCC syntax.
This commit is contained in:
parent
3bc482ec1c
commit
358f61ce32
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131525
@ -380,23 +380,23 @@ static struct rodentparam {
|
||||
float accelx; /* Acceleration in the X axis */
|
||||
float accely; /* Acceleration in the Y axis */
|
||||
} rodent = {
|
||||
flags : 0,
|
||||
portname : NULL,
|
||||
rtype : MOUSE_PROTO_UNKNOWN,
|
||||
level : -1,
|
||||
baudrate : 1200,
|
||||
rate : 0,
|
||||
resolution : MOUSE_RES_UNKNOWN,
|
||||
zmap: { 0, 0, 0, 0 },
|
||||
wmode: 0,
|
||||
mfd : -1,
|
||||
cfd : -1,
|
||||
mremsfd : -1,
|
||||
mremcfd : -1,
|
||||
clickthreshold : DFLT_CLICKTHRESHOLD,
|
||||
button2timeout : DFLT_BUTTON2TIMEOUT,
|
||||
accelx : 1.0,
|
||||
accely : 1.0,
|
||||
.flags = 0,
|
||||
.portname = NULL,
|
||||
.rtype = MOUSE_PROTO_UNKNOWN,
|
||||
.level = -1,
|
||||
.baudrate = 1200,
|
||||
.rate = 0,
|
||||
.resolution = MOUSE_RES_UNKNOWN,
|
||||
.zmap = { 0, 0, 0, 0 },
|
||||
.wmode = 0,
|
||||
.mfd = -1,
|
||||
.cfd = -1,
|
||||
.mremsfd = -1,
|
||||
.mremcfd = -1,
|
||||
.clickthreshold = DFLT_CLICKTHRESHOLD,
|
||||
.button2timeout = DFLT_BUTTON2TIMEOUT,
|
||||
.accelx = 1.0,
|
||||
.accely = 1.0,
|
||||
};
|
||||
|
||||
/* button status */
|
||||
|
@ -74,7 +74,7 @@ extern Distribution XF86ServerDistTable[];
|
||||
#define DTE_PACKAGE(name, mask, flag, package) \
|
||||
{ name, mask, DIST_ ## flag, DT_PACKAGE, { package } }
|
||||
#define DTE_SUBDIST(name, mask, flag, subdist) \
|
||||
{ name, mask, DIST_ ## flag, DT_SUBDIST, { my_dist: subdist } }
|
||||
{ name, mask, DIST_ ## flag, DT_SUBDIST, { .my_dist = subdist } }
|
||||
|
||||
#define BASE_DIST (&DistTable[0])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user