X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb%2Ftools%2Freplay_trace.c;h=0e799a686158fef4bc8c6a8229285d1387cec95a;hp=b42fb7b1b5e61e43858679a0b21e64f2ac66122f;hb=100444225380d3f5ca29424ea54703d308c7c651;hpb=be590188c17bcd9324ba671d74d43a325cff5e70 diff --git a/ccan/tdb/tools/replay_trace.c b/ccan/tdb/tools/replay_trace.c index b42fb7b1..0e799a68 100644 --- a/ccan/tdb/tools/replay_trace.c +++ b/ccan/tdb/tools/replay_trace.c @@ -872,11 +872,11 @@ static struct op *load_tracefile(char *filename[], if (!contents) err(1, "Reading %s", filename[file]); - lines = strsplit(contents, contents, "\n", NULL); + lines = strsplit(contents, contents, "\n"); if (!lines[0]) errx(1, "%s is empty", filename[file]); - words = strsplit(lines, lines[0], " ", NULL); + words = strsplit(lines, lines[0], " "); if (!streq(words[1], "tdb_open")) fail(filename[file], 1, "does not start with tdb_open"); @@ -887,7 +887,7 @@ static struct op *load_tracefile(char *filename[], for (i = 1; lines[i]; i++) { const struct op_table *opt; - words = strsplit(lines, lines[i], " ", NULL); + words = strsplit(lines, lines[i], " "); if (!words[0] || !words[1]) fail(filename[file], i+1, "Expected seqnum number and op");