diff options
Diffstat (limited to 'util/xmalloc.c')
-rw-r--r-- | util/xmalloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/xmalloc.c b/util/xmalloc.c index f5cacc3..e8a9a82 100644 --- a/util/xmalloc.c +++ b/util/xmalloc.c @@ -101,8 +101,8 @@ void xmalloc_fail(const char *function, size_t size, const char *file, int line) { if (size == 0) - sysdie("failed to format output with %s at %s line %d", function, - file, line); + sysdie("failed to format output with %s at %s line %d", function, file, + line); else sysdie("failed to %s %lu bytes at %s line %d", function, (unsigned long) size, file, line); @@ -202,7 +202,7 @@ x_strndup(const char *s, size_t size, const char *file, int line) char *copy; /* Don't assume that the source string is nul-terminated. */ - for (p = s; (size_t) (p - s) < size && *p != '\0'; p++) + for (p = s; (size_t)(p - s) < size && *p != '\0'; p++) ; length = p - s; copy = malloc(length + 1); @@ -262,7 +262,7 @@ x_asprintf(char **strp, const char *file, int line, const char *fmt, ...) } va_end(args); } -#else /* !(HAVE_C99_VAMACROS || HAVE_GNU_VAMACROS) */ +#else /* !(HAVE_C99_VAMACROS || HAVE_GNU_VAMACROS) */ void x_asprintf(char **strp, const char *fmt, ...) { |