From 6bf1803239e74f165dab471dd2930671fb1fd8ec Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Mon, 4 May 2009 22:49:21 -0700 Subject: [PATCH] fix build warning from time patch. --- bti.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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; -- 2.39.5