summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2015-03-10 14:13:38 +0100
committerKarel Zak <kzak@redhat.com>2015-03-12 10:22:14 +0100
commit58c1b9949dab8c41bb7392ef2930430c25ceb266 (patch)
treecf2045d3bdc09aa0adced5eab802d2688dac09be
parent93f9a8838963a1e6dad496c658954c41d3c854fd (diff)
downloadutil-linux-58c1b9949dab8c41bb7392ef2930430c25ceb266.tar.gz
silence compiler warning
This is primarily cosmetic, albeit it also provides an only very slight improvement in compile time error checking.
-rw-r--r--include/xalloc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/xalloc.h b/include/xalloc.h
index f012fb294..2264eba8e 100644
--- a/include/xalloc.h
+++ b/include/xalloc.h
@@ -91,7 +91,8 @@ static inline int __attribute__ ((__format__(printf, 2, 3)))
return ret;
}
-static inline int xvasprintf(char **strp, const char *fmt, va_list ap)
+static inline int __attribute__ ((__format__(printf, 2, 0)))
+xvasprintf(char **strp, const char *fmt, va_list ap)
{
int ret = vasprintf(&(*strp), fmt, ap);
if (ret < 0)