| 113 |
master_name[i % section_conf_count]); |
master_name[i % section_conf_count]); |
| 114 |
if (p_section[i] == NULL) |
if (p_section[i] == NULL) |
| 115 |
{ |
{ |
| 116 |
log_error("section_list_create(i = %d) error\n", i); |
printf("section_list_create(i = %d) error\n", i); |
| 117 |
|
return -3; |
| 118 |
|
} |
| 119 |
|
} |
| 120 |
|
|
| 121 |
|
for (i = 0; i < section_count; i++) |
| 122 |
|
{ |
| 123 |
|
if (get_section_index(p_section[i]) != i) |
| 124 |
|
{ |
| 125 |
|
printf("get_section_index(i = %d) error\n", i); |
| 126 |
return -3; |
return -3; |
| 127 |
} |
} |
| 128 |
} |
} |
| 139 |
for (i = 0; i < section_count; i++) |
for (i = 0; i < section_count; i++) |
| 140 |
{ |
{ |
| 141 |
sid = i * 3 + 1; |
sid = i * 3 + 1; |
| 142 |
if (section_list_find_by_sid(sid) == NULL) |
if (section_list_find_by_sid(sid) == NULL || section_list_find_by_sid(sid)->sid != sid) |
| 143 |
{ |
{ |
| 144 |
printf("section_list_find_by_sid(%d) error\n", sid); |
printf("section_list_find_by_sid(%d) error\n", sid); |
| 145 |
return -3; |
return -3; |