summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgraham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2010-11-19 01:19:11 (EST)
committer graham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2010-11-19 01:19:11 (EST)
commita91236f83d1777cf9dd94c709f0a974b173c7b8b (patch)
tree93dae5c84739b04d03a5142e8f30ae7e55297964
parentf8980c8d1dd162031290602cb3d494d617ff51ba (diff)
Use printf format specifier attribute for opkg_message().
git-svn-id: http://opkg.googlecode.com/svn/trunk@584 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r--libopkg/opkg_message.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libopkg/opkg_message.h b/libopkg/opkg_message.h
index 62a6b83..4fa2a0b 100644
--- a/libopkg/opkg_message.h
+++ b/libopkg/opkg_message.h
@@ -30,7 +30,8 @@ typedef enum {
void free_error_list(void);
void print_error_list(void);
-void opkg_message(message_level_t level, const char *fmt, ...);
+void opkg_message(message_level_t level, const char *fmt, ...)
+ __attribute__ ((format (printf, 2, 3)));
#define opkg_msg(l, fmt, args...) \
do { \