diff options
| author | 2022-09-26 11:19:45 +0200 | |
|---|---|---|
| committer | 2022-09-26 11:19:45 +0200 | |
| commit | fd6f71bfe36331d046e4183c2c133c6f01c9af2d (patch) | |
| tree | 2523108550567f4f20d0b3e3d8ec703f09a05c4d /main.c | |
| parent | New function msg_admiration(). (diff) | |
| download | penes-snac2-fd6f71bfe36331d046e4183c2c133c6f01c9af2d.tar.gz penes-snac2-fd6f71bfe36331d046e4183c2c133c6f01c9af2d.tar.xz penes-snac2-fd6f71bfe36331d046e4183c2c133c6f01c9af2d.zip | |
More work but signatures seem to still fail.
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -119,7 +119,9 @@ int main(int argc, char *argv[]) | |||
| 119 | if (strcmp(cmd, "announce") == 0) { | 119 | if (strcmp(cmd, "announce") == 0) { |
| 120 | xs *msg = msg_admiration(&snac, url, "Announce"); | 120 | xs *msg = msg_admiration(&snac, url, "Announce"); |
| 121 | 121 | ||
| 122 | { | 122 | if (msg != NULL) { |
| 123 | post(&snac, msg); | ||
| 124 | |||
| 123 | xs *j = xs_json_dumps_pp(msg, 4); | 125 | xs *j = xs_json_dumps_pp(msg, 4); |
| 124 | printf("%s\n", j); | 126 | printf("%s\n", j); |
| 125 | } | 127 | } |