treewide: replace xnfrealloc() calls to XNFrealloc()

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-08 17:31:28 +02:00 committed by Marge Bot
parent 61233adbca
commit a1fd7e7ba5
4 changed files with 6 additions and 6 deletions

View File

@ -800,7 +800,7 @@ CreateCallbackList(CallbackListPtr *pcbl)
}
}
listsToCleanup = (CallbackListPtr **) xnfrealloc(listsToCleanup,
listsToCleanup = (CallbackListPtr **) XNFrealloc(listsToCleanup,
sizeof(CallbackListPtr *) *
(numCallbackListsToCleanup
+ 1));

View File

@ -1339,7 +1339,7 @@ xf86MatchDevice(const char *drivername, GDevPtr ** sectlist)
/*
* we have a matching driver that wasn't claimed, yet
*/
pgdp = xnfrealloc(pgdp, (i + 2) * sizeof(GDevPtr));
pgdp = XNFrealloc(pgdp, (i + 2) * sizeof(GDevPtr));
pgdp[i++] = screensecptr->gpu_devices[k];
}
}

View File

@ -288,7 +288,7 @@ xf86ModesEqual(const DisplayModeRec * pMode1, const DisplayModeRec * pMode2)
static void
add(char **p, const char *new)
{
*p = xnfrealloc(*p, strlen(*p) + strlen(new) + 2);
*p = XNFrealloc(*p, strlen(*p) + strlen(new) + 2);
strcat(*p, " ");
strcat(*p, new);
}

View File

@ -410,7 +410,7 @@ xwl_add_format_and_mod_to_list(struct xwl_format **formats,
if (xwl_format == NULL) {
(*num_formats)++;
*formats = xnfrealloc(*formats, *num_formats * sizeof(*xwl_format));
*formats = XNFrealloc(*formats, *num_formats * sizeof(*xwl_format));
xwl_format = &(*formats)[*num_formats - 1];
xwl_format->format = format;
xwl_format->num_modifiers = 0;
@ -424,7 +424,7 @@ xwl_add_format_and_mod_to_list(struct xwl_format **formats,
}
xwl_format->num_modifiers++;
xwl_format->modifiers = xnfrealloc(xwl_format->modifiers,
xwl_format->modifiers = XNFrealloc(xwl_format->modifiers,
xwl_format->num_modifiers * sizeof(uint64_t));
xwl_format->modifiers[xwl_format->num_modifiers - 1] = modifier;
}
@ -596,7 +596,7 @@ xwl_dmabuf_feedback_tranche_done(void *data,
if (!appended) {
xwl_feedback->dev_formats_len++;
xwl_feedback->dev_formats = xnfrealloc(xwl_feedback->dev_formats,
xwl_feedback->dev_formats = XNFrealloc(xwl_feedback->dev_formats,
sizeof(struct xwl_device_formats) *
xwl_feedback->dev_formats_len);