chibipub

experimental activitypub node in C
git clone git://jb55.com/chibipub
Log | Files | Refs | README | LICENSE

commit b965f645963670c6d5fd2de63eec9080e54b5af7
parent 98445b0f4ae3c694c555b99a0011dc5c383f393b
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 25 Oct 2021 13:50:06 -0700

checksigs: smaller output

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Msrc/sigcheck.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/sigcheck.c b/src/sigcheck.c @@ -644,20 +644,22 @@ int sigcheck(struct sigcheck *check) start = out_cur.p; while (parse_json(&jsonp)) { count++; - debug("[%d] parse success", count); + fprintf(stderr, "[%d] parse success\r", count); res = verify_signature(out_cur, out_cur); if (res == 0) { printf("bad signature #%d\n", count); } else if (res == 1) { - printf("good signature #%d\n", count); + printf("good signature #%d\r", count); } // overwrite last ubjson out_cur.p = start; } + printf("\n"); + munmap(p, flen); return 1;