* fix multiple compiler warnings...
[citadel.git] / webcit / sitemap.c
index fd94266beb64116bc293b4c641c6a8014fad25e4..715c7245ffbe2484a5d9967b07105b6d0448f99d 100644 (file)
@@ -97,6 +97,11 @@ void sitemap_do_wiki(void) {
  * Entry point for RSS feed generator
  */
 void sitemap(void) {
+       HashList *roomlist;
+       HashPos *it;
+       long HKlen;
+       const char *HashKey;
+       folder *room;
 
        output_headers(0, 0, 0, 0, 1, 0);
        hprintf("Content-type: text/xml\r\n");
@@ -111,11 +116,8 @@ void sitemap(void) {
        wc_printf("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n");
        wc_printf("<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\r\n");
 
-       HashList *roomlist = GetRoomListHashLKRA(NULL, NULL);
-       HashPos *it = GetNewHashPos(roomlist, 0);
-       long HKlen;
-       const char *HashKey;
-       folder *room;
+       roomlist = GetRoomListHashLKRA(NULL, NULL);
+       it = GetNewHashPos(roomlist, 0);
 
        while (GetNextHashPos(roomlist, it, &HKlen, &HashKey, (void *)&room))
        {