summaryrefslogtreecommitdiff
path: root/hw/xfree86/common/xf86Xinput.c
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 17:36:00 +0200
committerMarge Bot <emma+marge@anholt.net>2024-07-26 23:41:33 +0000
commit9ec31d1a882549ee26f9b91251ed2d37f979353a (patch)
treeb843cd49fd72457215aaa16b2b4df8b0cfd41e45 /hw/xfree86/common/xf86Xinput.c
parenta1fd7e7ba5aadc770af8a71edfd152c99fe419d3 (diff)
treewide: replace strdup() calls to Xstrdup()
This has been nothing but an alias for two decades now (somewhere in R6.6), so there doesn't seem to be any practical need for this indirection. The macro still needs to remain, as long as (external) drivers still using it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1529>
Diffstat (limited to 'hw/xfree86/common/xf86Xinput.c')
-rw-r--r--hw/xfree86/common/xf86Xinput.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c
index 482816f48..0c9b97335 100644
--- a/hw/xfree86/common/xf86Xinput.c
+++ b/hw/xfree86/common/xf86Xinput.c
@@ -720,7 +720,7 @@ MergeInputClasses(const InputInfoPtr idev, const InputAttributes * attrs)
classopts = xf86optionListDup(cl->option_lst);
if (cl->driver) {
free((void *) idev->driver);
- idev->driver = xstrdup(cl->driver);
+ idev->driver = Xstrdup(cl->driver);
if (!idev->driver) {
xf86Msg(X_ERROR, "Failed to allocate memory while merging "
"InputClass configuration");
@@ -1047,7 +1047,7 @@ NewInputDeviceRequest(InputOption *options, InputAttributes * attrs,
rval = BadRequest;
goto unwind;
}
- pInfo->driver = xstrdup(value);
+ pInfo->driver = Xstrdup(value);
if (!pInfo->driver) {
rval = BadAlloc;
goto unwind;
@@ -1059,7 +1059,7 @@ NewInputDeviceRequest(InputOption *options, InputAttributes * attrs,
rval = BadRequest;
goto unwind;
}
- pInfo->name = xstrdup(value);
+ pInfo->name = Xstrdup(value);
if (!pInfo->name) {
rval = BadAlloc;
goto unwind;