From: Greg Kroah-Hartman Date: Tue, 5 May 2009 05:49:21 +0000 (-0700) Subject: fix build warning from time patch. X-Git-Url: https://git.toastfreeware.priv.at/gregoa/bti.git/commitdiff_plain/6bf1803239e74f165dab471dd2930671fb1fd8ec fix build warning from time patch. --- diff --git a/bti.c b/bti.c index b593b99..28d205d 100644 --- a/bti.c +++ b/bti.c @@ -201,14 +201,14 @@ static void parse_statuses(xmlDocPtr doc, xmlNodePtr current) { 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")) { @@ -223,14 +223,15 @@ static void parse_statuses(xmlDocPtr doc, xmlNodePtr current) } } - 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;