aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-registry
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mds-registry/mds-registry.c3
-rw-r--r--src/mds-registry/registry.c5
-rw-r--r--src/mds-registry/signals.c3
-rw-r--r--src/mds-registry/slave.h4
-rw-r--r--src/mds-registry/util.c6
5 files changed, 12 insertions, 9 deletions
diff --git a/src/mds-registry/mds-registry.c b/src/mds-registry/mds-registry.c
index 57a0b92..3d17247 100644
--- a/src/mds-registry/mds-registry.c
+++ b/src/mds-registry/mds-registry.c
@@ -66,7 +66,8 @@ server_characteristics_t server_characteristics = {
*
* @return Non-zero on error
*/
-int preinitialise_server(void)
+int
+preinitialise_server(void)
{
int stage = 0;
diff --git a/src/mds-registry/registry.c b/src/mds-registry/registry.c
index f5a9b8a..0c4d5a5 100644
--- a/src/mds-registry/registry.c
+++ b/src/mds-registry/registry.c
@@ -465,7 +465,8 @@ handle_register_message(void)
* @return Zero on success, -1 on error or interruption,
* `errno` will be set accordingly
*/
-int handle_message(void)
+int
+handle_message(void)
{
size_t i;
for (i = 0; i < received.header_count; i++) {
@@ -476,6 +477,6 @@ int handle_message(void)
}
fail_if (handle_close_message());
return 0;
- fail:
+fail:
return -1;
}
diff --git a/src/mds-registry/signals.c b/src/mds-registry/signals.c
index 9b0a7a0..8fb90dd 100644
--- a/src/mds-registry/signals.c
+++ b/src/mds-registry/signals.c
@@ -34,7 +34,8 @@
*
* @param signo The signal
*/
-void signal_all(int signo)
+void
+signal_all(int signo)
{
pthread_t current_thread;
ssize_t node;
diff --git a/src/mds-registry/slave.h b/src/mds-registry/slave.h
index f9f748b..0b4f7b2 100644
--- a/src/mds-registry/slave.h
+++ b/src/mds-registry/slave.h
@@ -35,8 +35,7 @@
/**
* Slave information, a thread waiting for protocols to become available
*/
-typedef struct slave
-{
+typedef struct slave {
/**
* Set of protocols for which to wait that they become available
*/
@@ -82,7 +81,6 @@ typedef struct slave
* Whether `dethklok` should apply
*/
int timed;
-
} slave_t;
diff --git a/src/mds-registry/util.c b/src/mds-registry/util.c
index c8d2015..77dff5a 100644
--- a/src/mds-registry/util.c
+++ b/src/mds-registry/util.c
@@ -37,7 +37,8 @@
*
* @param obj The key
*/
-void reg_table_free_key(size_t obj)
+void
+reg_table_free_key(size_t obj)
{
char *command = (void *)obj;
free(command);
@@ -49,7 +50,8 @@ void reg_table_free_key(size_t obj)
*
* @param obj The value
*/
-void reg_table_free_value(size_t obj)
+void
+reg_table_free_value(size_t obj)
{
client_list_t *list = (void *)obj;
client_list_destroy(list);