aboutsummaryrefslogtreecommitdiffstats
path: root/facebook/facebook-api.h
diff options
context:
space:
mode:
authorjgeboski <jgeboski@gmail.com>2015-01-27 20:20:46 -0500
committerjgeboski <jgeboski@gmail.com>2015-01-27 20:20:46 -0500
commit3c3a91a4472f4b58da7a44f25336934571311701 (patch)
treeb40156c0f600d4160fd9d04b9c4257674919747d /facebook/facebook-api.h
parentd930418085de78ff5e2ba8e4de53e7085e8d00a8 (diff)
downloadbitlbee-facebook-3c3a91a4472f4b58da7a44f25336934571311701.tar.gz
bitlbee-facebook-3c3a91a4472f4b58da7a44f25336934571311701.tar.bz2
bitlbee-facebook-3c3a91a4472f4b58da7a44f25336934571311701.tar.xz
Check format string security at compile-time
This enables various format string security checks by the compiler in attempt to avoid run-time failures.
Diffstat (limited to 'facebook/facebook-api.h')
-rw-r--r--facebook/facebook-api.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/facebook/facebook-api.h b/facebook/facebook-api.h
index 6d5c9f2..3080125 100644
--- a/facebook/facebook-api.h
+++ b/facebook/facebook-api.h
@@ -293,7 +293,8 @@ void fb_api_rehash(fb_api_t *api);
void fb_api_free(fb_api_t *api);
-void fb_api_error(fb_api_t *api, fb_api_error_t err, const gchar *fmt, ...);
+void fb_api_error(fb_api_t *api, fb_api_error_t err, const gchar *fmt, ...)
+ G_GNUC_PRINTF(3, 4);
void fb_api_auth(fb_api_t *api, const gchar *user, const gchar *pass);
@@ -306,7 +307,8 @@ void fb_api_disconnect(fb_api_t *api);
void fb_api_message(fb_api_t *api, fb_id_t id, gboolean thread,
const gchar *msg);
-void fb_api_publish(fb_api_t *api, const gchar *topic, const gchar *fmt, ...);
+void fb_api_publish(fb_api_t *api, const gchar *topic, const gchar *fmt, ...)
+ G_GNUC_PRINTF(3, 4);
void fb_api_thread_create(fb_api_t *api, GSList *uids);