diff options
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -1222,13 +1222,14 @@ int following_get(snac *snac, const char *actor, d_char **data) | |||
| 1222 | } | 1222 | } |
| 1223 | 1223 | ||
| 1224 | 1224 | ||
| 1225 | d_char *following_list(snac *snac) | 1225 | xs_list *following_list(snac *snac) |
| 1226 | /* returns the list of people being followed */ | 1226 | /* returns the list of people being followed */ |
| 1227 | { | 1227 | { |
| 1228 | xs *spec = xs_fmt("%s/following/" "*.json", snac->basedir); | 1228 | xs *spec = xs_fmt("%s/following/" "*.json", snac->basedir); |
| 1229 | xs *glist = xs_glob(spec, 0, 0); | 1229 | xs *glist = xs_glob(spec, 0, 0); |
| 1230 | char *p, *v; | 1230 | xs_list *p; |
| 1231 | d_char *list = xs_list_new(); | 1231 | xs_str *v; |
| 1232 | xs_list *list = xs_list_new(); | ||
| 1232 | 1233 | ||
| 1233 | /* iterate the list of files */ | 1234 | /* iterate the list of files */ |
| 1234 | p = glist; | 1235 | p = glist; |