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:
Mikhail Gusarov 2010-05-06 01:54:13 +07:00
parent 3f3ff971ec
commit 4d55c8c4ff
2 changed files with 2 additions and 2 deletions

View File

@ -1836,7 +1836,7 @@ SetDefaultFontPath(char *path)
if (!start) { if (!start) {
temp_path = Xprintf("%s%sbuilt-ins", path, *path ? "," : ""); temp_path = Xprintf("%s%sbuilt-ins", path, *path ? "," : "");
} else { } else {
temp_path = Xstrdup(path); temp_path = xstrdup(path);
} }
if (!temp_path) if (!temp_path)
return BadAlloc; return BadAlloc;

View File

@ -84,7 +84,7 @@ XNFvprintf(const char *format, va_list va)
size = vsnprintf(NULL, 0, format, va2); size = vsnprintf(NULL, 0, format, va2);
va_end(va2); va_end(va2);
ret = (char *)XNFalloc(size + 1); ret = (char *)xnfalloc(size + 1);
if (ret == NULL) if (ret == NULL)
return NULL; return NULL;