summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/events.h
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/events.h')
-rw-r--r--libglusterfs/src/events.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libglusterfs/src/events.h b/libglusterfs/src/events.h
index e059bc9c4d1..19988b0e3d2 100644
--- a/libglusterfs/src/events.h
+++ b/libglusterfs/src/events.h
@@ -15,10 +15,12 @@
#ifdef USE_EVENTS
int
-_gf_event (eventtypes_t event, char *fmt, ...);
+_gf_event (eventtypes_t event, const char *fmt, ...)
+ __attribute__ ((__format__ (__printf__, 2, 3)));
#else
+__attribute__ ((__format__ (__printf__, 2, 3)))
static inline int
-_gf_event (eventtypes_t event, char *fmt, ...)
+_gf_event (eventtypes_t event, const char *fmt, ...)
{
return 0;
}