diff options
author | default <nobody@localhost> | 2022-09-20 09:39:28 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-09-20 09:39:28 +0200 |
commit | 839cb552f4a42bea5018ce150e85920dbac3f456 (patch) | |
tree | 0ce9d561561f358635c5d3f4311d512a28ac90b1 /main.c | |
parent | c30a610a41337e749377f1762edf5603be531f65 (diff) |
Added some follower functions.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -11,7 +11,7 @@ int main(int argc, char *argv[]) printf("%s\n", tid()); - srv_open("/home/angel/lib/snac/comam.es"); + srv_open("/home/angel/lib/snac/comam.es/"); user_open(&snac, "mike"); snac_log(&snac, xs_str_new("ok")); @@ -22,11 +22,10 @@ int main(int argc, char *argv[]) p = list; while (xs_list_iter(&p, &uid)) { - user_open(&snac, uid); - - printf("%s (%s)\n", uid, xs_dict_get(snac.config, "name")); - - user_free(&snac); + if (user_open(&snac, uid)) { + printf("%s (%s)\n", uid, xs_dict_get(snac.config, "name")); + user_free(&snac); + } } } |