diff options
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/defaults-tmpl.c | 3 | ||||
-rw-r--r-- | libglusterfs/src/xlator.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/libglusterfs/src/defaults-tmpl.c b/libglusterfs/src/defaults-tmpl.c index b9f6274800e..d1e919aebc8 100644 --- a/libglusterfs/src/defaults-tmpl.c +++ b/libglusterfs/src/defaults-tmpl.c @@ -122,6 +122,7 @@ default_release (xlator_t *this, fd_t *fd) int default_notify (xlator_t *this, int32_t event, void *data, ...) { + GF_UNUSED int ret = 0; switch (event) { case GF_EVENT_PARENT_UP: case GF_EVENT_PARENT_DOWN: @@ -179,7 +180,7 @@ default_notify (xlator_t *this, int32_t event, void *data, ...) while (parent) { if (parent->xlator->init_succeeded) - xlator_notify (parent->xlator, event, + XLATOR_NOTIFY (ret, parent->xlator, event, this, data); parent = parent->next; } diff --git a/libglusterfs/src/xlator.h b/libglusterfs/src/xlator.h index be6cf60e8c7..f41ebddd9a9 100644 --- a/libglusterfs/src/xlator.h +++ b/libglusterfs/src/xlator.h @@ -1135,7 +1135,7 @@ typedef struct { #define xlator_has_parent(xl) (xl->parents != NULL) -#define XLATOR_NOTIFY(_xl, params ...) \ +#define XLATOR_NOTIFY(ret, _xl, params ...) \ do { \ xlator_t *_old_THIS = NULL; \ \ |