diff options
Diffstat (limited to 'xlators/experimental/posix2/ds/src/posix2-ds-main.c')
-rw-r--r-- | xlators/experimental/posix2/ds/src/posix2-ds-main.c | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/xlators/experimental/posix2/ds/src/posix2-ds-main.c b/xlators/experimental/posix2/ds/src/posix2-ds-main.c index 675c4d7c9da..4e399a98ed4 100644 --- a/xlators/experimental/posix2/ds/src/posix2-ds-main.c +++ b/xlators/experimental/posix2/ds/src/posix2-ds-main.c @@ -20,34 +20,31 @@ #include "statedump.h" int32_t -posix2_ds_init (xlator_t *this) +posix2_ds_init(xlator_t *this) { - if (this->children) { - gf_log (this->name, GF_LOG_ERROR, - "This (%s) is a leaf xlator, but found children", - this->name); - return -1; - } - - return 0; + if (this->children) { + gf_log(this->name, GF_LOG_ERROR, + "This (%s) is a leaf xlator, but found children", this->name); + return -1; + } + + return 0; } void -posix2_ds_fini (xlator_t *this) +posix2_ds_fini(xlator_t *this) { - return; + return; } class_methods_t class_methods = { - .init = posix2_ds_init, - .fini = posix2_ds_fini, + .init = posix2_ds_init, + .fini = posix2_ds_fini, }; -struct xlator_fops fops = { -}; +struct xlator_fops fops = {}; -struct xlator_cbks cbks = { -}; +struct xlator_cbks cbks = {}; /* struct xlator_dumpops dumpops = { @@ -55,5 +52,5 @@ struct xlator_dumpops dumpops = { */ struct volume_options options[] = { - { .key = {NULL} }, + {.key = {NULL}}, }; |