summaryrefslogtreecommitdiffstats
path: root/xlators/experimental/dht2/dht2-client/src/dht2-client-main.c
diff options
context:
space:
mode:
authorGluster Ant <bugzilla-bot@gluster.org>2018-09-12 17:52:45 +0530
committerNigel Babu <nigelb@redhat.com>2018-09-12 17:52:45 +0530
commite16868dede6455cab644805af6fe1ac312775e13 (patch)
tree15aebdb4fff2d87cf8a72f836816b3aa634da58d /xlators/experimental/dht2/dht2-client/src/dht2-client-main.c
parent45a71c0548b6fd2c757aa2e7b7671a1411948894 (diff)
Land part 2 of clang-format changes
Change-Id: Ia84cc24c8924e6d22d02ac15f611c10e26db99b4 Signed-off-by: Nigel Babu <nigelb@redhat.com>
Diffstat (limited to 'xlators/experimental/dht2/dht2-client/src/dht2-client-main.c')
-rw-r--r--xlators/experimental/dht2/dht2-client/src/dht2-client-main.c35
1 files changed, 17 insertions, 18 deletions
diff --git a/xlators/experimental/dht2/dht2-client/src/dht2-client-main.c b/xlators/experimental/dht2/dht2-client/src/dht2-client-main.c
index bd1d446e2b5..556385724a4 100644
--- a/xlators/experimental/dht2/dht2-client/src/dht2-client-main.c
+++ b/xlators/experimental/dht2/dht2-client/src/dht2-client-main.c
@@ -20,34 +20,33 @@
#include "statedump.h"
int32_t
-dht2_client_init (xlator_t *this)
+dht2_client_init(xlator_t *this)
{
- if (!this->children) {
- gf_log (this->name, GF_LOG_ERROR,
- "Missing children in volume graph, this (%s) is"
- " not a leaf translator", this->name);
- return -1;
- }
-
- return 0;
+ if (!this->children) {
+ gf_log(this->name, GF_LOG_ERROR,
+ "Missing children in volume graph, this (%s) is"
+ " not a leaf translator",
+ this->name);
+ return -1;
+ }
+
+ return 0;
}
void
-dht2_client_fini (xlator_t *this)
+dht2_client_fini(xlator_t *this)
{
- return;
+ return;
}
class_methods_t class_methods = {
- .init = dht2_client_init,
- .fini = dht2_client_fini,
+ .init = dht2_client_init,
+ .fini = dht2_client_fini,
};
-struct xlator_fops fops = {
-};
+struct xlator_fops fops = {};
-struct xlator_cbks cbks = {
-};
+struct xlator_cbks cbks = {};
/*
struct xlator_dumpops dumpops = {
@@ -55,5 +54,5 @@ struct xlator_dumpops dumpops = {
*/
struct volume_options options[] = {
- { .key = {NULL} },
+ {.key = {NULL}},
};