X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=src%2Fmsgdump.c;h=65cdd5adb4621dbc45c3fc6fcc37376095116431;hb=183961c84950614b04ccc39455fc101da0e2dc82;hp=253233802005316a431fa264aea0401d6dcac1a4;hpb=8d180b64058791e67b481d28bc57c7f2ed9c1e3d;p=vg.git diff --git a/src/msgdump.c b/src/msgdump.c index 2532338..65cdd5a 100644 --- a/src/msgdump.c +++ b/src/msgdump.c @@ -14,42 +14,46 @@ int main( int argc, char *argv[] ){ return 0; } - FILE *f = fopen( argv[1], "rb" ); - if( !f ){ - vg_error( "vg_disk_open_read: %s\n", strerror(errno) ); - } + for( int i=0; i