Lines Matching refs:p_section

645 	section_t *p_section = NULL;
652 p_section = safe_calloc(sizeof (*p_section), 1);
653 p_section->list = p_list;
654 p_section->section_next = NULL;
655 p_section->section_id = safe_strdup(section_id);
658 p_config_file->section_head = p_section;
660 p_config_file->section_tail->section_next = p_section;
662 p_config_file->section_tail = p_section;
672 section_t *p_section = NULL;
679 p_section = p_config_file->section_head;
680 while (p_section != NULL) {
681 p_list = p_section->list;
695 if (p_section->section_id != NULL)
696 free(p_section->section_id);
697 p_section->section_id = NULL;
698 p_section = p_section->section_next;
700 p_config_file->section_head = p_section;
929 section_t *p_section = NULL;
949 p_section = p_config_file->section_head;
950 while (p_section != NULL) {
951 p_list = p_section->list;
954 p_section->section_id));
955 len = fprintf(file, "\n%s\n", p_section->section_id);
981 p_section = p_section->section_next;
1033 section_t *p_section = NULL;
1038 p_section = p_config_file->section_head;
1040 while (p_section != NULL) {
1041 if ((p_section->section_id != NULL) &&
1042 (strcmp(p_section->section_id, section_id) == 0))
1043 return (p_section);
1044 p_section = p_section->section_next;
1223 section_t *p_section = NULL;
1233 p_section = find_section(p_config_file, WIFI_PREFER);
1234 if (p_section != NULL)
1235 plist = p_section->list;
1237 if ((p_section == NULL) || (plist == NULL))
1284 section_t *p_section = NULL;
1298 p_section = p_config_file->section_head;
1300 while (p_section != NULL) {
1301 if (p_section->section_id != NULL) {
1302 if (strcmp(p_section->section_id, section_id) == 0) {
1303 plist = p_section->list;
1313 p_section->list = NULL;
1314 free(p_section->section_id);
1315 p_section->section_id = NULL;
1319 p_section->section_next;
1320 if (p_section->section_next == NULL)
1329 p_section->section_next;
1330 if (p_section->section_next == NULL)
1334 free(p_section);
1340 p_section = p_section->section_next;
1353 section_t *p_section = NULL;
1371 p_section = find_section(p_config_file, WIFI_PREFER);
1373 if (p_section == NULL) {
1379 plist = p_section->list;
1452 section_t *p_section = NULL;
1461 p_section = find_section(p_config_file, WIFI_HISTORY);
1463 if (p_section == NULL) {
1467 plist = p_section->list;
1688 section_t *p_section = NULL;
1695 p_section = find_section(gp_config_file, pbuf);
1698 if (p_section == NULL) {
1701 plist = p_section->list;
1820 section_t *p_section = NULL;
1868 p_section = find_section(gp_config_file, WIFI_PREFER);
1869 if (p_section == NULL) {
1876 plist = p_section->list;
2022 section_t *p_section = NULL;
2042 p_section = find_section(gp_config_file, pbuf);
2055 if (p_section != NULL) {
2056 plist = p_section->list;
2073 section_t *p_section = NULL, *activep_section = NULL;
2103 p_section = gp_config_file->section_head;
2104 while (p_section != NULL) {
2105 if (((plist = p_section->list) != NULL) &&
2107 (strcmp(p_section->section_id, activeprofile) == 0)) {
2123 return (p_section->section_id);
2126 p_section = p_section->section_next;
2134 section_t *p_section = NULL;
2138 p_section = find_section(gp_config_file, WIFI_ACTIVEP);
2139 if (p_section == NULL) {
2143 plist = p_section->list;
2166 section_t *p_section = NULL;
2224 p_section = find_section(gp_config_file, pbuf);
2238 if (p_section != NULL) {
2242 plist = p_section->list;
2280 section_t *p_section = NULL;
2297 p_section = find_section(gp_config_file, pbuf);
2298 if (p_section != NULL) {
2299 plist = p_section->list;
2327 section_t *p_section = NULL;
2331 p_section = find_section(gp_wepkey_file, id);
2332 if (p_section != NULL) {
2333 plist = p_section->list;
2366 section_t *p_section = NULL;
2378 p_section = gp_config_file->section_head;
2379 while (p_section != NULL) {
2380 plist = p_section->list;
2382 (void) printf("%s\n", p_section->section_id);
2395 print_wepkey_info(p_section->section_id, NULL);
2397 p_section = p_section->section_next;
2404 p_section = find_section(gp_config_file, pbuf);
2406 if (p_section != NULL) {
2407 (void) printf("%s\n", p_section->section_id);
2408 plist = p_section->list;
2422 print_wepkey_info(p_section->section_id, NULL);
2504 section_t *p_section = NULL, *p_sectionbak = NULL;
2517 p_section = gp_config_file->section_head;
2518 while ((p_section != NULL) &&
2519 ((plist = p_section->list) != NULL)) {
2521 p_sectionbak = p_section->section_next;
2522 section_id = safe_strdup(p_section->section_id);
2533 p_section = p_sectionbak;
2536 p_section = p_section->section_next;
2575 section_t *p_section = NULL;
2590 p_section = find_section(gp_config_file, WIFI_HISTORY);
2591 if (p_section == NULL) {
2595 plist = p_section->list;
2692 section_t *p_section = NULL;
2702 p_section = find_section(gp_config_file, WIFI_PREFER);
2703 if (p_section != NULL) {
2704 plist = p_section->list;
2731 section_t *p_section = NULL;
2746 p_section = find_section(gp_config_file, WIFI_PREFER);
2747 if (p_section != NULL)
2748 plist = p_section->list;
2750 if ((p_section == NULL) || (plist == NULL))
3088 section_t *p_section = NULL;
3102 p_section = find_section(gp_wepkey_file, section_id);
3104 if (p_section == NULL) {
3116 plist = p_section->list;
4276 section_t *p_section = NULL;
4287 p_section = find_section(gp_config_file, pbuf);
4288 if (p_section == NULL) {
4298 plist = p_section->list;
4311 print_wepkey_info(p_section->section_id, NULL);
4327 print_wepkey_info(p_section->section_id,