fix build warning from time patch.
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 May 2009 05:49:21 +0000 (22:49 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 May 2009 05:49:21 +0000 (22:49 -0700)
bti.c

diff --git a/bti.c b/bti.c
index b593b99..28d205d 100644 (file)
--- 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;