Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Side by Side Diff: third_party/zlib/contrib/minizip/zip.c

Issue 2043063002: DO NOT COMMIT - Unrelated changes made by run-clang-tidy.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@d_WE998_allwin
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* zip.c -- IO on .zip files using zlib 1 /* zip.c -- IO on .zip files using zlib
2 Version 1.1, February 14h, 2010 2 Version 1.1, February 14h, 2010
3 part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html ) 3 part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html )
4 4
5 Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage. com/zLibDll/minizip.html ) 5 Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage. com/zLibDll/minizip.html )
6 6
7 Modifications for Zip64 support 7 Modifications for Zip64 support
8 Copyright (C) 2009-2010 Mathias Svensson ( http://result42.com ) 8 Copyright (C) 2009-2010 Mathias Svensson ( http://result42.com )
9 9
10 For more info read MiniZip_info.txt 10 For more info read MiniZip_info.txt
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 { 1107 {
1108 if (zipfi->dosDate != 0) 1108 if (zipfi->dosDate != 0)
1109 zi->ci.dosDate = zipfi->dosDate; 1109 zi->ci.dosDate = zipfi->dosDate;
1110 else 1110 else
1111 zi->ci.dosDate = zip64local_TmzDateToDosDate(&zipfi->tmz_date); 1111 zi->ci.dosDate = zip64local_TmzDateToDosDate(&zipfi->tmz_date);
1112 } 1112 }
1113 1113
1114 zi->ci.flag = flagBase; 1114 zi->ci.flag = flagBase;
1115 if ((level==8) || (level==9)) 1115 if ((level==8) || (level==9))
1116 zi->ci.flag |= 2; 1116 zi->ci.flag |= 2;
1117 if ((level==2)) 1117 if (level=2)
etienneb 2016/06/07 16:14:30 ditto !?!?!
1118 zi->ci.flag |= 4; 1118 zi->ci.flag |= 4;
1119 if ((level==1)) 1119 if (level=1)
1120 zi->ci.flag |= 6; 1120 zi->ci.flag |= 6;
1121 if (password != NULL) 1121 if (password != NULL)
1122 zi->ci.flag |= 1; 1122 zi->ci.flag |= 1;
1123 1123
1124 zi->ci.crc32 = 0; 1124 zi->ci.crc32 = 0;
1125 zi->ci.method = method; 1125 zi->ci.method = method;
1126 zi->ci.encrypt = 0; 1126 zi->ci.encrypt = 0;
1127 zi->ci.stream_initialised = 0; 1127 zi->ci.stream_initialised = 0;
1128 zi->ci.pos_in_buffered_data = 0; 1128 zi->ci.pos_in_buffered_data = 0;
1129 zi->ci.raw = raw; 1129 zi->ci.raw = raw;
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
1995 1995
1996 retVal = ZIP_OK; 1996 retVal = ZIP_OK;
1997 } 1997 }
1998 else 1998 else
1999 retVal = ZIP_ERRNO; 1999 retVal = ZIP_ERRNO;
2000 2000
2001 TRYFREE(pNewHeader); 2001 TRYFREE(pNewHeader);
2002 2002
2003 return retVal; 2003 return retVal;
2004 } 2004 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698