diff options
| author | 2024-03-09 08:44:48 +0100 | |
|---|---|---|
| committer | 2024-03-09 08:44:48 +0100 | |
| commit | 91bb0615d982d1adcc5680c346f9510905464584 (patch) | |
| tree | 5433a2dcdc2cc34115b76570bdc63b49429093bc /mastoapi.c | |
| parent | Backport from xs. (diff) | |
| download | snac2-91bb0615d982d1adcc5680c346f9510905464584.tar.gz snac2-91bb0615d982d1adcc5680c346f9510905464584.tar.xz snac2-91bb0615d982d1adcc5680c346f9510905464584.zip | |
Replaced most xs_dict_iter() with xs_dict_next().
Diffstat (limited to '')
| -rw-r--r-- | mastoapi.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -1172,7 +1172,8 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 1172 | if (xs_is_null(val_links)) | 1172 | if (xs_is_null(val_links)) |
| 1173 | val_links = xs_stock_dict; | 1173 | val_links = xs_stock_dict; |
| 1174 | 1174 | ||
| 1175 | while (xs_dict_iter(&metadata, &k, &v)) { | 1175 | int c = 0; |
| 1176 | while (xs_dict_next(metadata, &k, &v, &c)) { | ||
| 1176 | xs *val_date = NULL; | 1177 | xs *val_date = NULL; |
| 1177 | 1178 | ||
| 1178 | xs_number *verified_time = xs_dict_get(val_links, v); | 1179 | xs_number *verified_time = xs_dict_get(val_links, v); |