summaryrefslogtreecommitdiffstats
path: root/include/xalloc.h
diff options
context:
space:
mode:
authorRainer Gerhards2015-03-10 14:13:38 +0100
committerRainer Gerhards2015-03-10 14:13:38 +0100
commit3eb3c8d77e5323d313e555107bf5b27ded2d1c1c (patch)
tree3296b79f03aa29d5eee10e84d093ab0f05fd689a /include/xalloc.h
parentlibmount: cleanup fs root detection code (diff)
downloadkernel-qcow2-util-linux-3eb3c8d77e5323d313e555107bf5b27ded2d1c1c.tar.gz
kernel-qcow2-util-linux-3eb3c8d77e5323d313e555107bf5b27ded2d1c1c.tar.xz
kernel-qcow2-util-linux-3eb3c8d77e5323d313e555107bf5b27ded2d1c1c.zip
silence compiler warning
This is primarily cosmetic, albeit it also provides an only very slight improvement in compile time error checking.
Diffstat (limited to 'include/xalloc.h')
-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)