diff options
author | Gluster Ant <bugzilla-bot@gluster.org> | 2018-09-12 17:52:45 +0530 |
---|---|---|
committer | Nigel Babu <nigelb@redhat.com> | 2018-09-12 17:52:45 +0530 |
commit | e16868dede6455cab644805af6fe1ac312775e13 (patch) | |
tree | 15aebdb4fff2d87cf8a72f836816b3aa634da58d /xlators/debug/sink/src/sink.c | |
parent | 45a71c0548b6fd2c757aa2e7b7671a1411948894 (diff) |
Land part 2 of clang-format changes
Change-Id: Ia84cc24c8924e6d22d02ac15f611c10e26db99b4
Signed-off-by: Nigel Babu <nigelb@redhat.com>
Diffstat (limited to 'xlators/debug/sink/src/sink.c')
-rw-r--r-- | xlators/debug/sink/src/sink.c | 57 |
1 files changed, 30 insertions, 27 deletions
diff --git a/xlators/debug/sink/src/sink.c b/xlators/debug/sink/src/sink.c index dfd5685a969..fbbdd3a4847 100644 --- a/xlators/debug/sink/src/sink.c +++ b/xlators/debug/sink/src/sink.c @@ -12,37 +12,37 @@ #include "defaults.h" int32_t -init (xlator_t *this) +init(xlator_t *this) { - return 0; + return 0; } void -fini (xlator_t *this) +fini(xlator_t *this) { - return; + return; } /* * notify - when parent sends PARENT_UP, send CHILD_UP event from here */ int32_t -notify (xlator_t *this, int32_t event, void *data, ...) +notify(xlator_t *this, int32_t event, void *data, ...) { - switch (event) { + switch (event) { case GF_EVENT_PARENT_UP: - /* Tell the parent that this xlator is up */ - default_notify (this, GF_EVENT_CHILD_UP, data); - break; + /* Tell the parent that this xlator is up */ + default_notify(this, GF_EVENT_CHILD_UP, data); + break; case GF_EVENT_PARENT_DOWN: - /* Tell the parent that this xlator is down */ - default_notify (this, GF_EVENT_CHILD_DOWN, data); - break; + /* Tell the parent that this xlator is down */ + default_notify(this, GF_EVENT_CHILD_DOWN, data); + break; default: - break; - } + break; + } - return 0; + return 0; } /* @@ -53,27 +53,30 @@ notify (xlator_t *this, int32_t event, void *data, ...) * extended to support different LOOKUPs too. */ static int32_t -sink_lookup (call_frame_t *frame, xlator_t *this, loc_t *loc, dict_t *xdata) +sink_lookup(call_frame_t *frame, xlator_t *this, loc_t *loc, dict_t *xdata) { - struct iatt stbuf = { 0, }; - struct iatt postparent = { 0, }; + struct iatt stbuf = { + 0, + }; + struct iatt postparent = { + 0, + }; - /* the root of the volume always need to be a directory */ - stbuf.ia_type = IA_IFDIR; + /* the root of the volume always need to be a directory */ + stbuf.ia_type = IA_IFDIR; - STACK_UNWIND_STRICT (lookup, frame, 0, 0, loc ? loc->inode : NULL, - &stbuf, xdata, &postparent); + STACK_UNWIND_STRICT(lookup, frame, 0, 0, loc ? loc->inode : NULL, &stbuf, + xdata, &postparent); - return 0; + return 0; } struct xlator_fops fops = { - .lookup = sink_lookup, + .lookup = sink_lookup, }; -struct xlator_cbks cbks = { -}; +struct xlator_cbks cbks = {}; struct volume_options options[] = { - { .key = {NULL} }, + {.key = {NULL}}, }; |