summaryrefslogtreecommitdiffhomepage
path: root/ir/lpp
diff options
context:
space:
mode:
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>2014-05-27 12:28:58 +0200
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2014-05-27 12:52:13 +0200
commit9390b85299c5d199a18b3558a87b4897ebdcadeb (patch)
tree31a4e14918ae4509cd655ac106e0143a9595cdb5 /ir/lpp
parentf3086f26c822d94574d9423be107ad27e8bf9280 (diff)
Add space after 'switch'.
Diffstat (limited to 'ir/lpp')
-rw-r--r--ir/lpp/lpp.c4
-rw-r--r--ir/lpp/lpp_comm.c4
-rw-r--r--ir/lpp/lpp_net.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/ir/lpp/lpp.c b/ir/lpp/lpp.c
index 86b311f..8982a5c 100644
--- a/ir/lpp/lpp.c
+++ b/ir/lpp/lpp.c
@@ -348,7 +348,7 @@ void lpp_check_startvals(lpp_t *lpp)
sum += lpp->vars[var_idx]->value *
matrix_get(lpp->m, cst_idx, var_idx);
}
- switch(cst->type.cst_type) {
+ switch (cst->type.cst_type) {
case lpp_equal:
if(sum != cst_val) {
fprintf(stderr, "constraint %s unsatisfied: %g != %g\n", cst->name, sum, cst_val);
@@ -386,7 +386,7 @@ void lpp_set_log(lpp_t *lpp, FILE *log)
static const char *lpp_cst_op_to_str(lpp_cst_t cst)
{
- switch(cst) {
+ switch (cst) {
case lpp_equal:
return "=";
case lpp_less_equal:
diff --git a/ir/lpp/lpp_comm.c b/ir/lpp/lpp_comm.c
index 67db008..7f38ef2 100644
--- a/ir/lpp/lpp_comm.c
+++ b/ir/lpp/lpp_comm.c
@@ -366,7 +366,7 @@ int lpp_ack(lpp_comm_t *comm, char *buf, size_t buflen)
int res = 0;
int cmd = lpp_readl(comm);
- switch(cmd) {
+ switch (cmd) {
case LPP_CMD_OK:
res = 1;
break;
@@ -403,7 +403,7 @@ void lpp_send_ack(lpp_comm_t *comm)
const char *lpp_get_cmd_name(int cmd)
{
- switch(cmd) {
+ switch (cmd) {
case LPP_CMD_BAD: return "BAD";
case LPP_CMD_OK: return "OK";
case LPP_CMD_PROBLEM: return "PROBLEM";
diff --git a/ir/lpp/lpp_net.c b/ir/lpp/lpp_net.c
index c693dea..e8be459 100644
--- a/ir/lpp/lpp_net.c
+++ b/ir/lpp/lpp_net.c
@@ -186,7 +186,7 @@ void lpp_solve_net(lpp_t *lpp, const char *host, const char *solver)
ready = 0;
while (! ready) {
int cmd = lpp_readl(comm);
- switch(cmd) {
+ switch (cmd) {
case LPP_CMD_SOLUTION:
ir_timer_push(t_recv);
lpp_deserialize_stats(comm, lpp);