summaryrefslogtreecommitdiff
path: root/ext/zip/lib/zip_unchange.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zip/lib/zip_unchange.c')
-rw-r--r--ext/zip/lib/zip_unchange.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/zip/lib/zip_unchange.c b/ext/zip/lib/zip_unchange.c
index 5f0e753b78..9730bd2ce3 100644
--- a/ext/zip/lib/zip_unchange.c
+++ b/ext/zip/lib/zip_unchange.c
@@ -17,7 +17,7 @@
3. The names of the authors may not be used to endorse or promote
products derived from this software without specific prior
written permission.
-
+
THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -31,13 +31,13 @@
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-
+
#include <stdlib.h>
#include "zipint.h"
-
+
ZIP_EXTERN int
zip_unchange(struct zip *za, zip_uint64_t idx)
@@ -45,13 +45,13 @@ zip_unchange(struct zip *za, zip_uint64_t idx)
return _zip_unchange(za, idx, 0);
}
-
+
int
_zip_unchange(struct zip *za, zip_uint64_t idx, int allow_duplicates)
{
zip_int64_t i;
-
+
if (idx >= za->nentry) {
_zip_error_set(&za->error, ZIP_ER_INVAL, 0);
return -1;