diff options
author | Mikhail Gusarov <dottedmag@dottedmag.net> | 2010-05-06 01:54:13 +0700 |
---|---|---|
committer | Mikhail Gusarov <dottedmag@dottedmag.net> | 2010-05-13 00:22:37 +0700 |
commit | 4d55c8c4ffcb5d6c6500b462a41ace8e2359151d (patch) | |
tree | f5f76565eed77d190cce81978edb04d125ed3ab3 | |
parent | 3f3ff971ecff9936cebafc813af9193b97bba89c (diff) |
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>
-rw-r--r-- | dix/dixfonts.c | 2 | ||||
-rw-r--r-- | os/xprintf.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/dix/dixfonts.c b/dix/dixfonts.c index cc58b89fd..aaa992b4d 100644 --- a/dix/dixfonts.c +++ b/dix/dixfonts.c @@ -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; diff --git a/os/xprintf.c b/os/xprintf.c index 3fe19b36f..71a4424f7 100644 --- a/os/xprintf.c +++ b/os/xprintf.c @@ -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; |