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
This commit is contained in:
Max 2018-02-06 19:31:08 +01:00
parent 621ba032bd
commit 5e2e9bd0be
5 changed files with 6 additions and 6 deletions

View File

@ -257,7 +257,7 @@ int oap_client_handle(struct oap_client_state *state,
"OAP registration failed\n");
state->state = OAP_INITIALIZED;
if (state->registration_failures < 3) {
state->registration_failures ++;
state->registration_failures++;
return oap_client_register(state, msg_tx);
}
return -11;

View File

@ -216,7 +216,7 @@ struct gsm_sms *smsq_take_next_sms(struct gsm_network *net,
sms = db_sms_get_next_unsent_rr_msisdn(net, last_msisdn, 9);
if (!sms) {
last_msisdn[0] = '\0';
wrapped ++;
wrapped++;
continue;
}

View File

@ -595,7 +595,7 @@ void vlr_subscr_update_tuples(struct vlr_subscr *vsub,
}
vsub->auth_tuples[i].vec = gsup->auth_vectors[i];
vsub->auth_tuples[i].key_seq = key_seq;
got_tuples ++;
got_tuples++;
}
LOGVSUBP(LOGL_DEBUG, vsub, "Received %u auth tuples\n", got_tuples);

View File

@ -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;

View File

@ -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;