Some missing includes and a format error in blergtool
authorChip Black <bytex64@bytex64.net>
Sat, 22 Mar 2014 22:16:12 +0000 (17:16 -0500)
committerChip Black <bytex64@bytex64.net>
Sat, 29 Mar 2014 03:56:25 +0000 (22:56 -0500)
tools/blergtool.c

index 968081a..eee8aef 100644 (file)
@@ -3,7 +3,9 @@
  */
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include "database.h"
+#include "subscription.h"
 #include "tags.h"
 
 void help() {
@@ -79,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);
                }