[sr-dev] git:4.4:7790adcf: core: fixed misleading indentation for return statement

Daniel-Constantin Mierla miconda at gmail.com
Mon Oct 10 12:28:16 CEST 2016


Module: kamailio
Branch: 4.4
Commit: 7790adcfcd97540aeceb73a8ef556ae827007902
URL: https://github.com/kamailio/kamailio/commit/7790adcfcd97540aeceb73a8ef556ae827007902

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-10-10T12:09:45+02:00

core: fixed misleading indentation for return statement

(cherry picked from commit fc65a118d15e7942adccd332996701cdb6f1b0c7)

---

Modified: tls_hooks.c

---

Diff:  https://github.com/kamailio/kamailio/commit/7790adcfcd97540aeceb73a8ef556ae827007902.diff
Patch: https://github.com/kamailio/kamailio/commit/7790adcfcd97540aeceb73a8ef556ae827007902.patch

---

diff --git a/tls_hooks.c b/tls_hooks.c
index b46a429..62ddda2 100644
--- a/tls_hooks.c
+++ b/tls_hooks.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007 iptelorg GmbH 
+ * Copyright (C) 2007 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -34,7 +34,7 @@ static int tls_hooks_loaded=0;
 
 int register_tls_hooks(struct tls_hooks* h)
 {
-	if (!tls_disable){
+	if (!tls_disable) {
 		tls_hook=*h;
 		tls_hooks_loaded++;
 		return 0;
@@ -47,7 +47,7 @@ int tls_init(struct socket_info* si)
 {
 	if (tls_hook.init_si)
 		return tls_hook.init_si(si);
-		return -1;
+	return -1;
 }
 
 int tls_has_init_si()




More information about the sr-dev mailing list