diff options
author | Mike Buland <eichlan@xagasoft.com> | 2008-09-24 03:22:58 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2008-09-24 03:22:58 +0000 |
commit | 0975d66d2f06603f5e4016440b333aac88e2958a (patch) | |
tree | cd3767fb74c2475fd78bca9ff2d3ba825dd329f4 /src/tests/bzip2.cpp | |
parent | 17df4c2b9616c29865b0d893cc797d4938a660a2 (diff) | |
download | libbu++-0975d66d2f06603f5e4016440b333aac88e2958a.tar.gz libbu++-0975d66d2f06603f5e4016440b333aac88e2958a.tar.bz2 libbu++-0975d66d2f06603f5e4016440b333aac88e2958a.tar.xz libbu++-0975d66d2f06603f5e4016440b333aac88e2958a.zip |
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).
Diffstat (limited to '')
-rw-r--r-- | src/tests/bzip2.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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 @@ | |||
10 | 10 | ||
11 | int main( int argc, char *argv[] ) | 11 | int main( int argc, char *argv[] ) |
12 | { | 12 | { |
13 | if( argc < 3 ) | ||
14 | { | ||
15 | printf("usage: %s <in> <out>\n", argv[0] ); | ||
16 | return -1; | ||
17 | } | ||
18 | |||
13 | char buf[1024]; | 19 | char buf[1024]; |
14 | size_t nRead; | 20 | size_t nRead; |
15 | 21 | ||
16 | Bu::File f( "test.bz2", "wb" ); | 22 | Bu::File f( argv[0], "wb" ); |
17 | Bu::BZip2 bz2( f ); | 23 | Bu::BZip2 bz2( f ); |
18 | 24 | ||
19 | Bu::File fin( argv[1], "rb"); | 25 | Bu::File fin( argv[1], "rb"); |