sitemap now uses GetRoomListHash() which is what I should have used in the first...
authorArt Cancro <ajc@uncensored.citadel.org>
Sun, 24 Jul 2011 17:52:01 +0000 (13:52 -0400)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 21:41:33 +0000 (21:41 +0000)
webcit/sitemap.c

index c79c82441d38f95a86fdf8016613e7e09165b9e6..4d154632df09fd4cd1478e654b90f8511a813fae 100644 (file)
@@ -148,8 +148,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");
 
-       roomlist = GetRoomListHashLKRA(NULL, NULL);
-       if (!roomlist) syslog(LOG_CRIT, "GetRoomListHashLKRA() FAILED!");
+       roomlist = GetRoomListHash(NULL, NULL);
+       if (!roomlist) syslog(LOG_CRIT, "GetRoomListHash() FAILED!");
        it = GetNewHashPos(roomlist, 0);
        if (!it) syslog(LOG_CRIT, "GetNewHashPos() FAILED!");
 
@@ -174,7 +174,7 @@ void sitemap(void) {
        }
 
        DeleteHashPos(&it);
-       DeleteHash(&WC->Rooms);         /* roomlist is actually a pointer to WC->Rooms */
+       DeleteHash(&roomlist);
        wc_printf("</urlset>\r\n");
        wDumpContent(0);
 }