Browse code

- removed // comments, minor estetical changes

Jan Janak authored on 09/01/2006 09:56:14
Showing 1 changed files
... ...
@@ -89,17 +89,16 @@ int set_mod_param_regex(char* regex, char* name, modparam_t type, void* val)
89 89
 			mod_found = 1;
90 90
 			ptr = find_param_export(t, name, type | ((type & (PARAM_STR|PARAM_STRING))?PARAM_STR|PARAM_STRING:0), &param_type);
91 91
 			if (ptr) {
92
-				// type casting
92
+				     /* type casting */
93 93
 				if (type == PARAM_STRING && PARAM_TYPE_MASK(param_type) == PARAM_STR) {
94 94
 					s.s = (char*)val;
95
-					s.len = s.s?strlen(s.s):0;
95
+					s.len = s.s ? strlen(s.s) : 0;
96 96
 					val2 = &s;
97 97
 				} else if (type == PARAM_STR && PARAM_TYPE_MASK(param_type) == PARAM_STRING) {
98
-					val2 = s.s;	// zero terminator expected
99
-				}
100
-				else
98
+					val2 = s.s;	/* zero terminator expected */
99
+				} else {
101 100
 					val2 = val;
102
-
101
+				}
103 102
 
104 103
 				DBG("set_mod_param_regex: found <%s> in module %s [%s]\n", name, t->exports->name, t->path);
105 104
 				if (param_type & PARAM_USE_FUNC) {