mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
refactor: whitespace changes only
This commit is contained in:
parent
0897f8f87a
commit
44c4e9d52f
3 changed files with 7 additions and 8 deletions
|
@ -275,7 +275,7 @@ int web_stop(struct web *w)
|
|||
if (ret)
|
||||
serror("Failed to join Web worker thread");
|
||||
}
|
||||
|
||||
|
||||
w->state = STATE_STOPPED;
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -183,7 +183,6 @@ int main(int argc, char *argv[])
|
|||
hook_periodic(h);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -41,7 +41,7 @@ Test(mapping, parse_nodes)
|
|||
list_push(&n, &n1);
|
||||
list_push(&n, &n2);
|
||||
list_push(&n, &n3);
|
||||
|
||||
|
||||
ret = mapping_parse_str(&m, "apple.ts.origin", &n);
|
||||
cr_assert_eq(ret, 0);
|
||||
cr_assert_eq(m.node, &n1);
|
||||
|
@ -61,14 +61,14 @@ Test(mapping, parse_nodes)
|
|||
cr_assert_eq(m.type, MAPPING_TYPE_DATA);
|
||||
cr_assert_eq(m.data.offset, 1);
|
||||
cr_assert_eq(m.length, 2);
|
||||
|
||||
|
||||
ret = mapping_parse_str(&m, "carrot", &n);
|
||||
cr_assert_eq(ret, 0);
|
||||
cr_assert_eq(m.node, &n3);
|
||||
cr_assert_eq(m.type, MAPPING_TYPE_DATA);
|
||||
cr_assert_eq(m.data.offset, 0);
|
||||
cr_assert_eq(m.length, 0);
|
||||
|
||||
|
||||
ret = list_destroy(&n, NULL, false);
|
||||
cr_assert_eq(ret, 0);
|
||||
}
|
||||
|
@ -111,13 +111,13 @@ Test(mapping, parse)
|
|||
cr_assert_eq(m.type, MAPPING_TYPE_DATA);
|
||||
cr_assert_eq(m.data.offset, 22);
|
||||
cr_assert_eq(m.length, 1);
|
||||
|
||||
|
||||
ret = mapping_parse_str(&m, "data", NULL);
|
||||
cr_assert_eq(ret, 0);
|
||||
cr_assert_eq(m.type, MAPPING_TYPE_DATA);
|
||||
cr_assert_eq(m.data.offset, 0);
|
||||
cr_assert_eq(m.length, 0);
|
||||
|
||||
|
||||
ret = mapping_parse_str(&m, "data[]", NULL);
|
||||
cr_assert_eq(ret, 0);
|
||||
cr_assert_eq(m.type, MAPPING_TYPE_DATA);
|
||||
|
@ -148,4 +148,4 @@ Test(mapping, parse)
|
|||
/* Negative length of chunk */
|
||||
ret = mapping_parse_str(&m, "data[5-3]", NULL);
|
||||
cr_assert_eq(ret, -1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue