thermferm/rdconfig.c

changeset 174
244de612c572
parent 166
c31ea86fec43
child 175
b73490398368
equal deleted inserted replaced
173:7259ee8778e9 174:244de612c572
1033 xmlFree(key); 1033 xmlFree(key);
1034 } 1034 }
1035 if ((!xmlStrcmp(cur->name, (const xmlChar *)"PRESENT"))) { 1035 if ((!xmlStrcmp(cur->name, (const xmlChar *)"PRESENT"))) {
1036 key = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); 1036 key = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
1037 for (i = 0; i < 4; i++) { 1037 for (i = 0; i < 4; i++) {
1038 if (! xmlStrcmp(key, (const xmlChar *)DEVDIR[i])) { 1038 if (! xmlStrcmp(key, (const xmlChar *)DEVPRESENT[i])) {
1039 device->present = i; 1039 device->present = i;
1040 break; 1040 break;
1041 } 1041 }
1042 } 1042 }
1043 xmlFree(key); 1043 xmlFree(key);

mercurial