summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-03-09 08:44:48 +0100
committerdefault <nobody@localhost>2024-03-09 08:44:48 +0100
commit91bb0615d982d1adcc5680c346f9510905464584 (patch)
tree5433a2dcdc2cc34115b76570bdc63b49429093bc /utils.c
parent00b019b8902e9d319d855b9156f97f931923331c (diff)
Replaced most xs_dict_iter() with xs_dict_next().
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index d8cebdc..35caa6e 100644
--- a/utils.c
+++ b/utils.c
@@ -423,7 +423,8 @@ void verify_links(snac *user)
headers = xs_dict_append(headers, "accept", "text/html");
headers = xs_dict_append(headers, "user-agent", USER_AGENT " (link verify)");
- while (p && xs_dict_iter(&p, &k, &v)) {
+ int c = 0;
+ while (p && xs_dict_next(p, &k, &v, &c)) {
/* not an https link? skip */
if (!xs_startswith(v, "https:/" "/"))
continue;