Code reformatting
This commit is contained in:
parent
123e0f56bc
commit
136a4fe960
@ -17,7 +17,7 @@ int main(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
char *path = argv[1];
|
char *path = argv[1];
|
||||||
|
|
||||||
char* png_buffer = load_file(get_fd(path));
|
char *png_buffer = load_file(get_fd(path));
|
||||||
if (!is_png(png_buffer)) {
|
if (!is_png(png_buffer)) {
|
||||||
printf("It's not a PNG file\n");
|
printf("It's not a PNG file\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
@ -135,8 +135,6 @@ void xor_data(png_chunk *chunk) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void destroy_chunks(png_chunk **chunks) {
|
void destroy_chunks(png_chunk **chunks) {
|
||||||
unsigned int size = get_number_of_chunks(chunks);
|
unsigned int size = get_number_of_chunks(chunks);
|
||||||
for (int i = 0; i < size; i++) {
|
for (int i = 0; i < size; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user