Rizin
unix-like reverse engineering framework and cli tools
zip_unchange_archive.c File Reference
#include <stdlib.h>
#include "zipint.h"

Go to the source code of this file.

Functions

ZIP_EXTERN int zip_unchange_archive (zip_t *za)
 

Function Documentation

◆ zip_unchange_archive()

ZIP_EXTERN int zip_unchange_archive ( zip_t za)

Definition at line 41 of file zip_unchange_archive.c.

41  {
42  if (za->comment_changed) {
45  za->comment_changed = 0;
46  }
47 
48  za->ch_flags = za->flags;
49 
50  return 0;
51 }
#define NULL
Definition: cris-opc.c:27
unsigned int flags
Definition: zipint.h:283
unsigned int ch_flags
Definition: zipint.h:284
zip_string_t * comment_changes
Definition: zipint.h:289
bool comment_changed
Definition: zipint.h:290
void _zip_string_free(zip_string_t *s)
Definition: zip_string.c:69
zip_t * za
Definition: ziptool.c:79

References _zip_string_free(), zip::ch_flags, zip::comment_changed, zip::comment_changes, zip::flags, NULL, and za.

Referenced by zip_unchange_all().