Patchwork [4/4] slirp.h: Add GCC attribute (check format arguments)

login
register
mail settings
Submitter Stefan Weil
Date July 1, 2010, 11:08 a.m.
Message ID <1277982502-4196-5-git-send-email-weil@mail.berlios.de>
Download mbox | patch
Permalink /patch/57538/
State New
Headers show

Comments

Stefan Weil - July 1, 2010, 11:08 a.m.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
 slirp/slirp.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/slirp/slirp.h b/slirp/slirp.h
index 98a2644..c30c19e 100644
--- a/slirp/slirp.h
+++ b/slirp/slirp.h
@@ -294,7 +294,7 @@  void if_start(struct ttys *);
  long gethostid(void);
 #endif
 
-void lprint(const char *, ...);
+void lprint(const char *, ...) __attribute__ ((__format__ (__printf__, 1, 2)));
 
 #ifndef _WIN32
 #include <netdb.h>