projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7f3bb21
)
sitemap now uses GetRoomListHash() which is what I should have used in the first...
author
Art Cancro
<ajc@uncensored.citadel.org>
Sun, 24 Jul 2011 17:52:01 +0000
(13:52 -0400)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Sun, 4 Sep 2011 21:41:33 +0000
(21:41 +0000)
webcit/sitemap.c
patch
|
blob
|
history
diff --git
a/webcit/sitemap.c
b/webcit/sitemap.c
index c79c82441d38f95a86fdf8016613e7e09165b9e6..4d154632df09fd4cd1478e654b90f8511a813fae 100644
(file)
--- a/
webcit/sitemap.c
+++ b/
webcit/sitemap.c
@@
-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");
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 = GetRoomListHash
LKRA
(NULL, NULL);
- if (!roomlist) syslog(LOG_CRIT, "GetRoomListHash
LKRA
() FAILED!");
+ roomlist = GetRoomListHash(NULL, NULL);
+ if (!roomlist) syslog(LOG_CRIT, "GetRoomListHash() FAILED!");
it = GetNewHashPos(roomlist, 0);
if (!it) syslog(LOG_CRIT, "GetNewHashPos() FAILED!");
it = GetNewHashPos(roomlist, 0);
if (!it) syslog(LOG_CRIT, "GetNewHashPos() FAILED!");
@@
-174,7
+174,7
@@
void sitemap(void) {
}
DeleteHashPos(&it);
}
DeleteHashPos(&it);
- DeleteHash(&
WC->Rooms); /* roomlist is actually a pointer to WC->Rooms */
+ DeleteHash(&
roomlist);
wc_printf("</urlset>\r\n");
wDumpContent(0);
}
wc_printf("</urlset>\r\n");
wDumpContent(0);
}