X-Git-Url: https://git.eyrie.org/?a=blobdiff_plain;f=util%2Fxmalloc.c;h=fc6839eef939eb5f1e1ffe41b48f916a8af8a989;hb=657c8a6ee967108bdbaee29d3d311966b32c57c2;hp=889bd1ee6e29656ea9ed0fc2dc04b14af34a08bb;hpb=2ce890bb689117f79e9a3a5f1f2c9f6ccaf00fa4;p=kerberos%2Fkrb5-strength.git diff --git a/util/xmalloc.c b/util/xmalloc.c index 889bd1e..fc6839e 100644 --- a/util/xmalloc.c +++ b/util/xmalloc.c @@ -100,8 +100,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); @@ -201,7 +201,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); @@ -261,7 +261,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, ...) {