Module: kamailio
Branch: master
Commit: 08e451066aad2ed14a70a72a18733788a48224ef
URL:
https://github.com/kamailio/kamailio/commit/08e451066aad2ed14a70a72a1873378…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-10-31T16:39:59+01:00
ims_ipsec_pcscf: fix gcc warning about misleading indention
---
Modified: src/modules/ims_ipsec_pcscf/spi_gen.c
---
Diff:
https://github.com/kamailio/kamailio/commit/08e451066aad2ed14a70a72a1873378…
Patch:
https://github.com/kamailio/kamailio/commit/08e451066aad2ed14a70a72a1873378…
---
diff --git a/src/modules/ims_ipsec_pcscf/spi_gen.c
b/src/modules/ims_ipsec_pcscf/spi_gen.c
index 997cb866e9..5e329028c9 100644
--- a/src/modules/ims_ipsec_pcscf/spi_gen.c
+++ b/src/modules/ims_ipsec_pcscf/spi_gen.c
@@ -42,27 +42,28 @@ int init_spi_gen(uint32_t start_val, uint32_t range)
return 1;
}
- if(UINT32_MAX - range < start_val)
+ if(UINT32_MAX - range < start_val) {
return 2;
+ }
- if(spi_data){
- return 3;
- }
+ if(spi_data){
+ return 3;
+ }
- spi_data = shm_malloc(sizeof(spi_generator_t));
- if(spi_data == NULL){
- return 4;
- }
+ spi_data = shm_malloc(sizeof(spi_generator_t));
+ if(spi_data == NULL){
+ return 4;
+ }
- if(pthread_mutex_init(&spi_data->spis_mut, NULL)){
- shm_free(spi_data);
- return 5;
- }
+ if(pthread_mutex_init(&spi_data->spis_mut, NULL)){
+ shm_free(spi_data);
+ return 5;
+ }
- spi_data->used_spis = create_list();
+ spi_data->used_spis = create_list();
- spi_data->spi_val = spi_data->min_spi = start_val;
- spi_data->max_spi = start_val + range;
+ spi_data->spi_val = spi_data->min_spi = start_val;
+ spi_data->max_spi = start_val + range;
return 0;
}