{
xmlChar *text = NULL;
xmlChar *user = NULL;
- xmlChar *time = NULL;
+ xmlChar *created = NULL;
xmlNodePtr userinfo;
current = current->xmlChildrenNode;
while (current != NULL) {
if (current->type == XML_ELEMENT_NODE) {
if (!xmlStrcmp(current->name, (const xmlChar *)"created_at"))
- time = xmlNodeListGetString(doc, current->xmlChildrenNode, 1);
+ created = xmlNodeListGetString(doc, current->xmlChildrenNode, 1);
if (!xmlStrcmp(current->name, (const xmlChar *)"text"))
text = xmlNodeListGetString(doc, current->xmlChildrenNode, 1);
if (!xmlStrcmp(current->name, (const xmlChar *)"user")) {
}
}
- if (user && text && time) {
- printf("[%s] (%.16s) %s\n", user, time, text);
+ if (user && text && created) {
+ printf("[%s] (%.16s) %s\n",
+ user, created, text);
xmlFree(user);
xmlFree(text);
- xmlFree(time);
+ xmlFree(created);
user = NULL;
text = NULL;
- time = NULL;
+ created = NULL;
}
}
current = current->next;