diff options
author | default <nobody@localhost> | 2022-11-21 11:14:24 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-11-21 11:14:24 +0100 |
commit | b487b41be63315b6c0994b43418fb3b4fd181d03 (patch) | |
tree | 11af29cfe81301e41bd548e429a714ad79bb5747 /html.c | |
parent | 935089ae3fbc4cc684ca56584f2b5363899cb3e0 (diff) |
Backport from xs (new xs_set() API).
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -773,11 +773,13 @@ d_char *html_timeline(snac *snac, char *list, int local) /* returns the HTML for the timeline */ { d_char *s = xs_str_new(NULL); - xs_set *seen = xs_set_new(4096); + xs_set seen; char *v; double t = ftime(); int num = 0; + xs_set_init(&seen); + s = html_user_header(snac, s, local); if (!local) @@ -789,7 +791,7 @@ d_char *html_timeline(snac *snac, char *list, int local) while (xs_list_iter(&list, &v)) { xs *msg = timeline_get(snac, v); - s = html_entry(snac, s, msg, seen, local, 0, &num); + s = html_entry(snac, s, msg, &seen, local, 0, &num); } s = xs_str_cat(s, "</div>\n"); @@ -828,7 +830,7 @@ d_char *html_timeline(snac *snac, char *list, int local) s = xs_str_cat(s, "</body>\n</html>\n"); - xs_set_free(seen); + xs_set_free(&seen); return s; } |