general: Silence -Wnewline-eof warnings

These warnings occur when building with the default template on macOS.
This commit is contained in:
Lioncash 2019-05-05 00:26:34 -04:00
parent 04ed8b9ee4
commit 0318763fe8
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7
21 changed files with 21 additions and 22 deletions

2
aes.c
View File

@ -172,4 +172,4 @@ void aes_xts_decrypt(aes_ctx_t *ctx, void *dst, const void *src, size_t l, size_
aes_setiv(ctx, tweak, 16);
aes_decrypt(ctx, (char *)dst + i, (const char *)src + i, sector_size);
}
}
}

2
bktr.h
View File

@ -75,4 +75,4 @@ bktr_relocation_entry_t *bktr_get_relocation(bktr_relocation_block_t *block, uin
bktr_subsection_bucket_t *bktr_get_subsection_bucket(bktr_subsection_block_t *block, uint32_t i);
bktr_subsection_entry_t *bktr_get_subsection(bktr_subsection_block_t *block, uint64_t offset);
#endif
#endif

View File

@ -15,4 +15,4 @@ int settings_has_titlekey(hactool_settings_t *settings, const unsigned char *rig
void settings_add_titlekey(hactool_settings_t *settings, const unsigned char *rights_id, const unsigned char *titlekey);
titlekey_entry_t *settings_get_titlekey(hactool_settings_t *settings, const unsigned char *rights_id);
#endif
#endif

2
hfs0.c
View File

@ -107,4 +107,4 @@ void hfs0_print(hfs0_ctx_t *ctx) {
}
}
}
}
}

2
hfs0.h
View File

@ -55,4 +55,4 @@ void hfs0_print(hfs0_ctx_t *ctx);
void hfs0_save_file(hfs0_ctx_t *ctx, uint32_t i, filepath_t *dirpath);
#endif
#endif

2
kip.c
View File

@ -299,4 +299,4 @@ void kip1_save(kip1_ctx_t *ctx) {
fclose(f_uncmp);
}
}
}
}

3
kip.h
View File

@ -69,5 +69,4 @@ static inline uint64_t kip1_get_size_from_header(kip1_header_t *header) {
return 0x100 + header->section_headers[0].compressed_size + header->section_headers[1].compressed_size + header->section_headers[2].compressed_size;
}
#endif
#endif

2
nax0.c
View File

@ -170,4 +170,4 @@ void nax0_print(nax0_ctx_t *ctx) {
memdump(stdout, " Header HMAC: ", ctx->header.hmac_header, 0x20);
memdump(stdout, " Encrypted Keys: ", ctx->encrypted_keys, 0x20);
memdump(stdout, " Decrypted Keys: ", ctx->header.keys, 0x20);
}
}

2
nax0.h
View File

@ -33,4 +33,4 @@ void nax0_process(nax0_ctx_t *ctx);
void nax0_save(nax0_ctx_t *ctx);
void nax0_print(nax0_ctx_t *ctx);
#endif
#endif

View File

@ -140,4 +140,4 @@ void nca0_romfs_save(nca0_romfs_ctx_t *ctx) {
void nca0_romfs_print(nca0_romfs_ctx_t *ctx) {
/* Is there anything meaningful to print here? */
fprintf(stderr, "Error: NCA0 RomFS printing not implemented.\n");
}
}

2
nso.c
View File

@ -123,4 +123,4 @@ void nso0_save(nso0_ctx_t *ctx) {
}
fclose(f_uncmp);
}
}
}

2
nso.h
View File

@ -49,4 +49,4 @@ static inline uint64_t nso_get_size(nso0_header_t *header) {
return header->segments[2].file_off + nso_get_section_size(header, 2);
}
#endif
#endif

View File

@ -339,4 +339,4 @@ void pk21_save(pk21_ctx_t *ctx) {
}
ini1_save(&ctx->ini1_ctx);
}
}
}

View File

@ -112,4 +112,4 @@ void pk21_process(pk21_ctx_t *ctx);
void pk21_print(pk21_ctx_t *ctx);
void pk21_save(pk21_ctx_t *ctx);
#endif
#endif

2
pfs0.c
View File

@ -128,4 +128,4 @@ void pfs0_print(pfs0_ctx_t *ctx) {
if (ctx->is_exefs) {
npdm_process(ctx->npdm, ctx->tool_ctx);
}
}
}

2
pki.h
View File

@ -20,4 +20,4 @@ void pki_set_beta_nca0_exponent(void *exponent);
const unsigned char *pki_get_beta_nca0_exponent(void);
const unsigned char *pki_get_beta_nca0_label_hash(void);
#endif
#endif

View File

@ -137,4 +137,4 @@ void romfs_save(romfs_ctx_t *ctx) {
void romfs_print(romfs_ctx_t *ctx) {
/* Is there anything meaningful to print here? */
fprintf(stderr, "Error: RomFS printing not implemented.\n");
}
}

2
rsa.c
View File

@ -208,4 +208,4 @@ int rsa2048_oaep_decrypt_verify(void *out, size_t max_out_len, const unsigned ch
}
memcpy(out, data, remaining);
return true;
}
}

2
sha.c
View File

@ -82,4 +82,4 @@ void sha256_get_buffer_hmac(void *digest, const void *secret, size_t s_l, const
mbedtls_md_free(&ctx->digest);
free(ctx);
}
}

2
xci.c
View File

@ -257,4 +257,4 @@ void xci_print(xci_ctx_t *ctx) {
printf("Logo Partition:\n");
xci_print_hfs0(&ctx->logo_ctx);
}
}
}

2
xci.h
View File

@ -62,4 +62,4 @@ void xci_process(xci_ctx_t *ctx);
void xci_save(xci_ctx_t *ctx);
void xci_print(xci_ctx_t *ctx);
#endif
#endif