[sr-dev] git:master:08e45106: ims_ipsec_pcscf: fix gcc warning about misleading indention

Henning Westerholt hw at skalatan.de
Thu Oct 31 16:41:26 CET 2019


Module: kamailio
Branch: master
Commit: 08e451066aad2ed14a70a72a18733788a48224ef
URL: https://github.com/kamailio/kamailio/commit/08e451066aad2ed14a70a72a18733788a48224ef

Author: Henning Westerholt <hw at skalatan.de>
Committer: Henning Westerholt <hw at 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/08e451066aad2ed14a70a72a18733788a48224ef.diff
Patch: https://github.com/kamailio/kamailio/commit/08e451066aad2ed14a70a72a18733788a48224ef.patch

---

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




More information about the sr-dev mailing list