summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar default2022-09-26 11:19:45 +0200
committerGravatar default2022-09-26 11:19:45 +0200
commitfd6f71bfe36331d046e4183c2c133c6f01c9af2d (patch)
tree2523108550567f4f20d0b3e3d8ec703f09a05c4d /main.c
parentNew function msg_admiration(). (diff)
downloadpenes-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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index 8efbc36..eed5ea8 100644
--- a/main.c
+++ b/main.c
@@ -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 }