diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
commit | 78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch) | |
tree | 8512c50df70b8dd80c919e88ade3419207c95956 /plugins/Updater/zbin | |
parent | ce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff) |
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Updater/zbin')
-rw-r--r-- | plugins/Updater/zbin/minizip/minizip.c | 8 | ||||
-rw-r--r-- | plugins/Updater/zbin/minizip/unzip.c | 2 | ||||
-rw-r--r-- | plugins/Updater/zbin/minizip/zip.c | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/plugins/Updater/zbin/minizip/minizip.c b/plugins/Updater/zbin/minizip/minizip.c index 7a4fa5a643..d979e14bf2 100644 --- a/plugins/Updater/zbin/minizip/minizip.c +++ b/plugins/Updater/zbin/minizip/minizip.c @@ -417,18 +417,18 @@ int main(argc,argv) } /*should the zip file contain any path at all?*/ - if( opt_exclude_path ) + if ( opt_exclude_path ) { const char *tmpptr; const char *lastslash = 0; - for( tmpptr = savefilenameinzip; *tmpptr; tmpptr++) + for ( tmpptr = savefilenameinzip; *tmpptr; tmpptr++) { - if( *tmpptr == '\\' || *tmpptr == '/') + if ( *tmpptr == '\\' || *tmpptr == '/') { lastslash = tmpptr; } } - if( lastslash != NULL ) + if ( lastslash != NULL ) { savefilenameinzip = lastslash+1; // base filename follows last slash. } diff --git a/plugins/Updater/zbin/minizip/unzip.c b/plugins/Updater/zbin/minizip/unzip.c index 44f9876160..2174e2f1c5 100644 --- a/plugins/Updater/zbin/minizip/unzip.c +++ b/plugins/Updater/zbin/minizip/unzip.c @@ -753,7 +753,7 @@ local unzFile unzOpenInternal (const void *path, s=(unz64_s*)ALLOC(sizeof(unz64_s)); - if( s != NULL) + if ( s != NULL) { *s=us; unzGoToFirstFile((unzFile)s); diff --git a/plugins/Updater/zbin/minizip/zip.c b/plugins/Updater/zbin/minizip/zip.c index 3c34fc8bd4..f672594071 100644 --- a/plugins/Updater/zbin/minizip/zip.c +++ b/plugins/Updater/zbin/minizip/zip.c @@ -1587,7 +1587,7 @@ extern int ZEXPORT zipCloseFileInZipRaw64 (zipFile file, ZPOS64_T uncompressed_s zi->ci.stream_initialised = 0; } #ifdef HAVE_BZIP2 - else if((zi->ci.method == Z_BZIP2ED) && (!zi->ci.raw)) + else if ((zi->ci.method == Z_BZIP2ED) && (!zi->ci.raw)) { int tmperr = BZ2_bzCompressEnd(&zi->ci.bstream); if (err==ZIP_OK) @@ -1650,7 +1650,7 @@ extern int ZEXPORT zipCloseFileInZipRaw64 (zipFile file, ZPOS64_T uncompressed_s { char* p = NULL; - if((uLong)(datasize + 4) > zi->ci.size_centralExtraFree) + if ((uLong)(datasize + 4) > zi->ci.size_centralExtraFree) { // we can not write more data to the buffer that we have room for. return ZIP_BADZIPFILE; @@ -1967,7 +1967,7 @@ extern int ZEXPORT zipRemoveExtraInfoBlock (char* pData, int* dataLen, short sHe header = *(short*)p; dataSize = *(((short*)p)+1); - if( header == sHeader ) // Header found. + if ( header == sHeader ) // Header found. { p += dataSize + 4; // skip it. do not copy to temp buffer } |