* 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");
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))
{