Use lowercase variant of XNFalloc and Xstrdup
Using one variant of function/macro makes it easier to fix the code later. Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
3f3ff971ec
commit
4d55c8c4ff
|
@ -1836,7 +1836,7 @@ SetDefaultFontPath(char *path)
|
|||
if (!start) {
|
||||
temp_path = Xprintf("%s%sbuilt-ins", path, *path ? "," : "");
|
||||
} else {
|
||||
temp_path = Xstrdup(path);
|
||||
temp_path = xstrdup(path);
|
||||
}
|
||||
if (!temp_path)
|
||||
return BadAlloc;
|
||||
|
|
|
@ -84,7 +84,7 @@ XNFvprintf(const char *format, va_list va)
|
|||
size = vsnprintf(NULL, 0, format, va2);
|
||||
va_end(va2);
|
||||
|
||||
ret = (char *)XNFalloc(size + 1);
|
||||
ret = (char *)xnfalloc(size + 1);
|
||||
if (ret == NULL)
|
||||
return NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user