diff options
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/events.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libglusterfs/src/events.c b/libglusterfs/src/events.c index 9d781874a8a..2df8c29026c 100644 --- a/libglusterfs/src/events.c +++ b/libglusterfs/src/events.c @@ -23,12 +23,13 @@ int gf_event (int event, char *fmt, ...) { + int ret = 0; +#if (USE_EVENTS) int sock = -1; char eventstr[EVENTS_MSG_MAX] = ""; struct sockaddr_un server; va_list arguments; char *msg = NULL; - int ret = 0; size_t eventstr_size = 0; if (event < 0 || event >= EVENT_LAST) { @@ -79,5 +80,6 @@ gf_event (int event, char *fmt, ...) out: sys_close(sock); GF_FREE(msg); +#endif return ret; } |