diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-02-23 18:31:02 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-12 18:19:07 +0300 |
commit | 9ed5cf16a4a0f982f0fae170740ee2886f634a14 (patch) | |
tree | 4b2852b5ea4f915346fe7afcbbdd50e9d679f60d /core | |
parent | 73a230b6e652f4bba1bf08cb21fec112a968ff0d (diff) | |
download | subsurface-9ed5cf16a4a0f982f0fae170740ee2886f634a14.tar.gz |
Coding style: remove Java-style function definition
Remove a few cases of
void fun() {
...
}
While touching these functions, fix a few other whitespace
coding style violations.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core')
-rw-r--r-- | core/deco.c | 3 | ||||
-rw-r--r-- | core/errorhelper.c | 3 | ||||
-rw-r--r-- | core/profile.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/core/deco.c b/core/deco.c index c3a8059c0..b60a787b5 100644 --- a/core/deco.c +++ b/core/deco.c @@ -526,7 +526,8 @@ void dump_tissues(struct deco_state *ds) } #endif -void clear_vpmb_state(struct deco_state *ds) { +void clear_vpmb_state(struct deco_state *ds) +{ int ci; for (ci = 0; ci < 16; ci++) { ds->max_n2_crushing_pressure[ci] = 0.0; diff --git a/core/errorhelper.c b/core/errorhelper.c index cad595912..b77f70186 100644 --- a/core/errorhelper.c +++ b/core/errorhelper.c @@ -26,6 +26,7 @@ int report_error(const char *fmt, ...) return -1; } -void set_error_cb(void(*cb)(char *)) { +void set_error_cb(void(*cb)(char *)) +{ error_cb = cb; } diff --git a/core/profile.c b/core/profile.c index 9cc072973..ddf9b601e 100644 --- a/core/profile.c +++ b/core/profile.c @@ -124,7 +124,8 @@ int evn_allocated; int evn_used; #if WE_DONT_USE_THIS /* we need to implement event filters in Qt */ -int evn_foreach (void (*callback)(const char *, bool *, void *), void *data) { +int evn_foreach (void (*callback)(const char *, bool *, void *), void *data) +{ int i; for (i = 0; i < evn_used; i++) { |