From 55276a78e2a285817aa4e416ad41c4278301cd8d Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 31 Dec 2022 12:51:47 +0100 Subject: [PATCH] Add newlines at EOF so clang doesn't complain --- minitar.h | 2 +- src/tar.c | 2 +- src/tar.h | 2 +- src/util.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/minitar.h b/minitar.h index 77036d2..5339472 100644 --- a/minitar.h +++ b/minitar.h @@ -52,4 +52,4 @@ extern "C" } #endif -#endif \ No newline at end of file +#endif diff --git a/src/tar.c b/src/tar.c index bac2489..81ef4e2 100644 --- a/src/tar.c +++ b/src/tar.c @@ -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; return nread; -} \ No newline at end of file +} diff --git a/src/tar.h b/src/tar.h index f78323c..f6b6042 100644 --- a/src/tar.h +++ b/src/tar.h @@ -25,4 +25,4 @@ struct tar_header char padding[12]; // Not part of the header, only used to make the structure 512 bytes } __attribute__((packed)); -#endif \ No newline at end of file +#endif diff --git a/src/util.c b/src/util.c index 3b55389..3a90a5c 100644 --- a/src/util.c +++ b/src/util.c @@ -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 < sizeof *hdr) minitar_panic("Valid tar files should be split in 512-byte blocks"); return 1; -} \ No newline at end of file +}