浏览代码

usrloc(s): gcc 2.9x var decls. fixes

variable declarations must be at the beginning of the function and
not intercalated in the code.
Andrei Pelinescu-Onciul 16 年之前
父节点
当前提交
4cd5605bb9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules_s/usrloc/ul_mod.c

+ 1 - 1
modules_s/usrloc/ul_mod.c

@@ -207,7 +207,6 @@ static int mod_init(void)
 
 
 static int build_db_cmds(void)
 static int build_db_cmds(void)
 {
 {
-	INFO("usrloc: build_db_cmds()\n");
 	db_fld_t del_contact_match[] = {
 	db_fld_t del_contact_match[] = {
 		{.name = uid_col.s, .type = DB_STR},
 		{.name = uid_col.s, .type = DB_STR},
 		{.name = contact_col.s, .type = DB_STR},
 		{.name = contact_col.s, .type = DB_STR},
@@ -234,6 +233,7 @@ static int build_db_cmds(void)
 	dlist_t* ptr;
 	dlist_t* ptr;
 	int i;
 	int i;
 
 
+	INFO("usrloc: build_db_cmds()\n");
 	for(cmd_n = 0, ptr = root; ptr; cmd_n++, ptr = ptr->next);
 	for(cmd_n = 0, ptr = root; ptr; cmd_n++, ptr = ptr->next);
 
 
 	del_contact = pkg_malloc(cmd_n);
 	del_contact = pkg_malloc(cmd_n);