use XNFalloc() instead of xnfalloc

xnfalloc is just an alias for XNFalloc() that doesn't seem to serve
any practical purpose, so it can go away once all drivers stopped using it.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-mouse/-/merge_requests/14>
This commit is contained in:
Enrico Weigelt, metux IT consult
2024-05-08 11:38:16 +02:00
committed by Alan Coopersmith
parent d2c6c6380e
commit 832818c4a5
2 changed files with 3 additions and 3 deletions

View File

@@ -117,7 +117,7 @@ lnxMouseMagic(InputInfoPtr pInfo)
return NULL;
}
if (S_ISLNK(sbuf.st_mode)) {
realdev = xnfalloc(PATH_MAX + 1);
realdev = XNFalloc(PATH_MAX + 1);
i = readlink(dev, realdev, PATH_MAX);
if (i <= 0) {
#ifdef DEBUG
@@ -134,7 +134,7 @@ lnxMouseMagic(InputInfoPtr pInfo)
else {
/* If realdev doesn't contain a '/' then prepend "/dev/" */
if (!strchr(realdev, '/')) {
char *tmp = xnfalloc(strlen(realdev) + 5 + 1);
char *tmp = XNFalloc(strlen(realdev) + 5 + 1);
sprintf(tmp, "/dev/%s", realdev);
free(realdev);
realdev = tmp;

View File

@@ -3352,7 +3352,7 @@ createSerialDefaultsList(void)
{
int i = 0, j, k;
serialDefaultsList = (void **)xnfalloc(sizeof(void*));
serialDefaultsList = (void **)XNFalloc(sizeof(void*));
serialDefaultsList[0] = NULL;
for (j = 0; mouseProtocols[j].name; j++) {