Fix compilation warnings causing test failures in libclamav_sprintf1.c
llvm-svn: 137281
diff --git a/poolalloc/test/type_checks/error/libclamav_snprintf1.c b/poolalloc/test/type_checks/error/libclamav_snprintf1.c
index 88e6c82..3892073 100644
--- a/poolalloc/test/type_checks/error/libclamav_snprintf1.c
+++ b/poolalloc/test/type_checks/error/libclamav_snprintf1.c
@@ -13,6 +13,8 @@
#include <sys/types.h>
#include <stdarg.h>
+#include <stdio.h>
+#include <string.h>
static void
dopr(char *buffer, size_t maxlen, const char *format, va_list args);
@@ -529,6 +531,7 @@
return bytes;
}
-void main () {
+int main () {
mdprintf("%d %s %f", 5.0, "arushi", 4.0);
+ return 0;
}