about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard Nyberg <rnyberg@murmeldjur.se>2006-09-13 18:44:23 +0000
committerRichard Nyberg <rnyberg@murmeldjur.se>2006-09-13 18:44:23 +0000
commit0c9cc2aa1dc14eff6d512f7156bfc25f2d1d41c4 (patch)
treec745569d2f90ff631738ea72385a7c1c6d5edb49
parent1911f326a640a2557536f28c281bd3619882333c (diff)
downloadbtpd-0c9cc2aa1dc14eff6d512f7156bfc25f2d1d41c4.tar.gz
btpd-0c9cc2aa1dc14eff6d512f7156bfc25f2d1d41c4.zip
Enable printf format type checking.
-rw-r--r--btpd/http.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/btpd/http.h b/btpd/http.h
index 8edaac4..9f03614 100644
--- a/btpd/http.h
+++ b/btpd/http.h
@@ -17,6 +17,7 @@ struct http_res {
     size_t length;
 };
 
+__attribute__((format (printf, 4, 5)))
 int http_get(struct http **ret,
     void (*cb)(struct http *, struct http_res *, void *),
     void *arg,