projects
/
blerg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add RSS links for tags and feed
[blerg.git]
/
tools
/
blergtool.c
diff --git
a/tools/blergtool.c
b/tools/blergtool.c
index
35af915
..
eee8aef
100644
(file)
--- a/
tools/blergtool.c
+++ b/
tools/blergtool.c
@@
-3,7
+3,9
@@
*/
#include <stdio.h>
#include <stdlib.h>
*/
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include "database.h"
#include "database.h"
+#include "subscription.h"
#include "tags.h"
void help() {
#include "tags.h"
void help() {
@@
-27,6
+29,10
@@
int main(int argc, char *argv[]) {
exit(1);
}
exit(1);
}
+ if (!blerg_init()) {
+ exit(2);
+ }
+
if (strncmp(argv[1], "store", 5) == 0) {
char *store = argv[2];
struct blerg *f = blerg_open(store);
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++) {
} 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);
}
}
free(list);
}