2
0
Эх сурвалжийг харах

- removed // comments, minor estetical changes

Jan Janak 20 жил өмнө
parent
commit
bb32b8ca31
1 өөрчлөгдсөн 5 нэмэгдсэн , 6 устгасан
  1. 5 6
      modparam.c

+ 5 - 6
modparam.c

@@ -89,17 +89,16 @@ int set_mod_param_regex(char* regex, char* name, modparam_t type, void* val)
 			mod_found = 1;
 			mod_found = 1;
 			ptr = find_param_export(t, name, type | ((type & (PARAM_STR|PARAM_STRING))?PARAM_STR|PARAM_STRING:0), &param_type);
 			ptr = find_param_export(t, name, type | ((type & (PARAM_STR|PARAM_STRING))?PARAM_STR|PARAM_STRING:0), &param_type);
 			if (ptr) {
 			if (ptr) {
-				// type casting
+				     /* type casting */
 				if (type == PARAM_STRING && PARAM_TYPE_MASK(param_type) == PARAM_STR) {
 				if (type == PARAM_STRING && PARAM_TYPE_MASK(param_type) == PARAM_STR) {
 					s.s = (char*)val;
 					s.s = (char*)val;
-					s.len = s.s?strlen(s.s):0;
+					s.len = s.s ? strlen(s.s) : 0;
 					val2 = &s;
 					val2 = &s;
 				} else if (type == PARAM_STR && PARAM_TYPE_MASK(param_type) == PARAM_STRING) {
 				} else if (type == PARAM_STR && PARAM_TYPE_MASK(param_type) == PARAM_STRING) {
-					val2 = s.s;	// zero terminator expected
-				}
-				else
+					val2 = s.s;	/* zero terminator expected */
+				} else {
 					val2 = val;
 					val2 = val;
-
+				}
 
 
 				DBG("set_mod_param_regex: found <%s> in module %s [%s]\n", name, t->exports->name, t->path);
 				DBG("set_mod_param_regex: found <%s> in module %s [%s]\n", name, t->exports->name, t->path);
 				if (param_type & PARAM_USE_FUNC) {
 				if (param_type & PARAM_USE_FUNC) {