Add newlines at EOF so clang doesn't complain
This commit is contained in:
parent
ab80b8ba45
commit
55276a78e2
@ -133,4 +133,4 @@ size_t minitar_read_contents(struct minitar* mp, struct minitar_entry* entry, ch
|
|||||||
if (fsetpos(mp->stream, ¤t_position)) return 0;
|
if (fsetpos(mp->stream, ¤t_position)) return 0;
|
||||||
|
|
||||||
return nread;
|
return nread;
|
||||||
}
|
}
|
||||||
|
@ -25,4 +25,4 @@ struct tar_header
|
|||||||
char padding[12]; // Not part of the header, only used to make the structure 512 bytes
|
char padding[12]; // Not part of the header, only used to make the structure 512 bytes
|
||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -215,4 +215,4 @@ int minitar_read_header(struct minitar* mp, struct tar_header* hdr)
|
|||||||
if (rc == 0 && ferror(mp->stream)) minitar_panic("Error while reading file header from tar archive");
|
if (rc == 0 && ferror(mp->stream)) minitar_panic("Error while reading file header from tar archive");
|
||||||
if (rc < sizeof *hdr) minitar_panic("Valid tar files should be split in 512-byte blocks");
|
if (rc < sizeof *hdr) minitar_panic("Valid tar files should be split in 512-byte blocks");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user