treewide: replace xnfstrdup() calls by XNFstrdup()

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>
This commit is contained in:
Enrico Weigelt, metux IT consult
2024-05-10 11:15:20 +02:00
committed by Marge Bot
parent f446235b71
commit dec57e5796
12 changed files with 51 additions and 51 deletions

View File

@@ -1214,27 +1214,27 @@ dix_input_attributes(void)
assert(memcmp(orig, new, sizeof(InputAttributes)) == 0);
FreeInputAttributes(new);
orig->product = xnfstrdup("product name");
orig->product = XNFstrdup("product name");
new = DuplicateInputAttributes(orig);
cmp_attr_fields(orig, new);
FreeInputAttributes(new);
orig->vendor = xnfstrdup("vendor name");
orig->vendor = XNFstrdup("vendor name");
new = DuplicateInputAttributes(orig);
cmp_attr_fields(orig, new);
FreeInputAttributes(new);
orig->device = xnfstrdup("device path");
orig->device = XNFstrdup("device path");
new = DuplicateInputAttributes(orig);
cmp_attr_fields(orig, new);
FreeInputAttributes(new);
orig->pnp_id = xnfstrdup("PnPID");
orig->pnp_id = XNFstrdup("PnPID");
new = DuplicateInputAttributes(orig);
cmp_attr_fields(orig, new);
FreeInputAttributes(new);
orig->usb_id = xnfstrdup("USBID");
orig->usb_id = XNFstrdup("USBID");
new = DuplicateInputAttributes(orig);
cmp_attr_fields(orig, new);
FreeInputAttributes(new);