mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-21 20:26:45 +00:00
input: switch InitValuatorAxisStruct to return Bool
Return errors instead of silently ignoring them. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
5ac1f885f5
commit
8d1a414cca
4 changed files with 11 additions and 9 deletions
|
|
@ -1363,15 +1363,15 @@ xf86XInputSetScreen(InputInfoPtr pInfo,
|
|||
}
|
||||
|
||||
|
||||
void
|
||||
Bool
|
||||
xf86InitValuatorAxisStruct(DeviceIntPtr dev, int axnum, Atom label, int minval, int maxval,
|
||||
int resolution, int min_res, int max_res, int mode)
|
||||
{
|
||||
if (!dev || !dev->valuator)
|
||||
return;
|
||||
return FALSE;
|
||||
|
||||
InitValuatorAxisStruct(dev, axnum, label, minval, maxval, resolution, min_res,
|
||||
max_res, mode);
|
||||
return InitValuatorAxisStruct(dev, axnum, label, minval, maxval, resolution, min_res,
|
||||
max_res, mode);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue