aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-02-06 19:31:08 +0100
committerMax <msuraev@sysmocom.de>2018-02-06 19:31:08 +0100
commit5e2e9bd0be7b9dddfa557ec044b222f37ee3b3d4 (patch)
tree378a43212e37938bb3cf5ddde8e85edc32c09c42 /tests
parent621ba032bdf60383f5431ca936040c620551a3d5 (diff)
Fix whitespace issues
We don't usually put space before in-place increment or decrement. Let's make code look similar to other Osmocom projects. Change-Id: I5962431ad16c97e412939dc1b8949f6361a5c26e
Diffstat (limited to 'tests')
-rw-r--r--tests/msc_vlr/msc_vlr_tests.c4
-rw-r--r--tests/sms_queue/sms_queue_test.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/msc_vlr/msc_vlr_tests.c b/tests/msc_vlr/msc_vlr_tests.c
index 4544429d7..713bb163b 100644
--- a/tests/msc_vlr/msc_vlr_tests.c
+++ b/tests/msc_vlr/msc_vlr_tests.c
@@ -826,8 +826,8 @@ void *msgb_ctx = NULL;
void run_tests(int nr)
{
int test_nr;
- nr --; /* arg's first test is 1, in here it's 0 */
- for (test_nr = 0; msc_vlr_tests[test_nr]; test_nr ++) {
+ nr--; /* arg's first test is 1, in here it's 0 */
+ for (test_nr = 0; msc_vlr_tests[test_nr]; test_nr++) {
if (nr >= 0 && test_nr != nr)
continue;
diff --git a/tests/sms_queue/sms_queue_test.c b/tests/sms_queue/sms_queue_test.c
index 0ff636e79..641cc5f4f 100644
--- a/tests/sms_queue/sms_queue_test.c
+++ b/tests/sms_queue/sms_queue_test.c
@@ -107,7 +107,7 @@ struct gsm_sms *__wrap_db_sms_get_next_unsent_rr_msisdn(struct gsm_network *net,
fake_sms.receiver = fake_sms_db[i].vsub_attached? &arbitrary_vsub : NULL;
osmo_strlcpy(fake_sms.text, fake_sms_db[i].msisdn, sizeof(fake_sms.text));
if (fake_sms_db[i].vsub_attached)
- fake_sms_db[i].nr_of_sms --;
+ fake_sms_db[i].nr_of_sms--;
return &fake_sms;
}
return NULL;