X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=tools%2Fblergtool.c;h=eee8aef97f39f8312496127fa442d2e5a4eed65f;hb=f1b33c517e6a1396c3bfb8ded250207bfae4e969;hp=35af915a620121a02a452c637f5fe408070788d9;hpb=7034e4be0e5b0cd1a27a067fee5970cf61500b60;p=blerg.git diff --git a/tools/blergtool.c b/tools/blergtool.c index 35af915..eee8aef 100644 --- a/tools/blergtool.c +++ b/tools/blergtool.c @@ -3,7 +3,9 @@ */ #include #include +#include #include "database.h" +#include "subscription.h" #include "tags.h" void help() { @@ -27,6 +29,10 @@ int main(int argc, char *argv[]) { exit(1); } + if (!blerg_init()) { + exit(2); + } + if (strncmp(argv[1], "store", 5) == 0) { char *store = argv[2]; struct blerg *f = blerg_open(store); @@ -75,7 +81,7 @@ int main(int argc, char *argv[]) { } else { int i; for (i = 0; i < count; i++) { - printf("%s %d\n", list[i].author, list[i].record); + printf("%s %llu\n", list[i].author, list[i].record); } free(list); }