diff options
| author | Brian <none@none> | 2010-08-26 18:33:11 -0600 |
|---|---|---|
| committer | Brian <none@none> | 2010-08-26 18:33:11 -0600 |
| commit | 350ba75fc4eecc667ddc83617b4b362d88844c60 (patch) | |
| tree | 933b160b8060b8434c686c2ffb3f56b63ec73728 /dep/libzip/regress/deltest.c | |
| parent | f89a27dc98901cca611f4f5249a8fcd64ceb664f (diff) | |
Core/Dep: Remove libzip
--HG--
branch : trunk
Diffstat (limited to 'dep/libzip/regress/deltest.c')
| -rw-r--r-- | dep/libzip/regress/deltest.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/dep/libzip/regress/deltest.c b/dep/libzip/regress/deltest.c deleted file mode 100644 index 87991e5ede0..00000000000 --- a/dep/libzip/regress/deltest.c +++ /dev/null @@ -1,37 +0,0 @@ -#include "zip.h" -#include "error.h" - -char *prg; -#define BUFSIZE 65536 - -int -main(int argc, char *argv[]) -{ - struct zip *za; - - if (argc != 2) { - fprintf(stderr, "%s: call with one option: zip-file. First file" - " in zip-file will be deleted\n", argv[0]); - return 1; - } - - if ((za=zip_open(argv[1], ZIP_CHECKCONS))==NULL) { - fprintf(stderr, "%s: can't open '%s': %s\n", argv[0], argv[1], - zip_err_str[zip_err]); - return 1; - } - - if (zip_delete(za, 0)< 0) { - fprintf(stderr, "%s: can't delete first file in '%s': %s", - argv[0], argv[1], zip_err_str[zip_err]); - return 1; - } - - if (zip_close(za)!=0) { - fprintf(stderr, "%s: can't close file '%s': %s", argv[0], argv[1], - zip_err_str[zip_err]); - return 1; - } - - return 0; -} |
