From 0975d66d2f06603f5e4016440b333aac88e2958a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 24 Sep 2008 03:22:58 +0000 Subject: Ok, now all the warnings are gone (except for those coming from nids, but that's ok, nids is still in flux, they'll be gone soon). --- src/tests/bzip2.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/tests/bzip2.cpp') diff --git a/src/tests/bzip2.cpp b/src/tests/bzip2.cpp index 88c5a5d..de7c034 100644 --- a/src/tests/bzip2.cpp +++ b/src/tests/bzip2.cpp @@ -10,10 +10,16 @@ int main( int argc, char *argv[] ) { + if( argc < 3 ) + { + printf("usage: %s \n", argv[0] ); + return -1; + } + char buf[1024]; size_t nRead; - Bu::File f( "test.bz2", "wb" ); + Bu::File f( argv[0], "wb" ); Bu::BZip2 bz2( f ); Bu::File fin( argv[1], "rb"); -- cgit v1.2.3