summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-06-29 15:44:41 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-06-29 15:44:41 +0200
commit205690cb7ceb14de5f4478df721a6c1060536924 (patch)
tree38359556d0bf0a82bcc27ed2c53c64c29ea3a7d2 /src
parent1fad72fd2093363c1e96b05d3410317fdc1f331a (diff)
downloadouroboros-205690cb7ceb14de5f4478df721a6c1060536924.tar.gz
ouroboros-205690cb7ceb14de5f4478df721a6c1060536924.zip
irmd: corrected if( statements
Diffstat (limited to 'src')
-rw-r--r--src/irmd/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c
index c9e2d9bb..5ff84da1 100644
--- a/src/irmd/main.c
+++ b/src/irmd/main.c
@@ -709,7 +709,7 @@ static int registry_add_ap_auto(char * name,
a->ap_name = ap_name;
a->argv = argv;
- if(e->state == REG_NAME_IDLE)
+ if (e->state == REG_NAME_IDLE)
e->state = REG_NAME_AUTO_ACCEPT;
list_add(&a->next, &e->auto_ap_info);
@@ -741,7 +741,7 @@ static int registry_remove_ap_auto(char * name,
list_del(&a->next);
- if(e->state == REG_NAME_AUTO_ACCEPT && list_empty(&e->auto_ap_info))
+ if (e->state == REG_NAME_AUTO_ACCEPT && list_empty(&e->auto_ap_info))
e->state = REG_NAME_IDLE;
return 0;
@@ -784,7 +784,7 @@ static struct reg_instance * registry_add_ap_instance(char * name,
return NULL;
}
- if(e->state == REG_NAME_IDLE || e->state == REG_NAME_AUTO_ACCEPT
+ if (e->state == REG_NAME_IDLE || e->state == REG_NAME_AUTO_ACCEPT
|| e->state == REG_NAME_AUTO_EXEC) {
e->state = REG_NAME_FLOW_ACCEPT;
pthread_cond_signal(&e->acc_signal);
@@ -1910,7 +1910,7 @@ void * irm_flow_cleaner()
IRMD_CLEANUP_TIMER % BILLION};
while (true) {
- if(clock_gettime(CLOCK_MONOTONIC, &now) < 0)
+ if (clock_gettime(CLOCK_MONOTONIC, &now) < 0)
LOG_WARN("Failed to get time.");
/* cleanup stale PENDING flows */