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_setiv(ctx, tweak, 16);
aes_decrypt(ctx, (char *)dst + i, (const char *)src + i, sector_size); 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_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); 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); 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); 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); 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); 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; 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, " Header HMAC: ", ctx->header.hmac_header, 0x20);
memdump(stdout, " Encrypted Keys: ", ctx->encrypted_keys, 0x20); memdump(stdout, " Encrypted Keys: ", ctx->encrypted_keys, 0x20);
memdump(stdout, " Decrypted Keys: ", ctx->header.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_save(nax0_ctx_t *ctx);
void nax0_print(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) { void nca0_romfs_print(nca0_romfs_ctx_t *ctx) {
/* Is there anything meaningful to print here? */ /* Is there anything meaningful to print here? */
fprintf(stderr, "Error: NCA0 RomFS printing not implemented.\n"); 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); 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); 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); 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_print(pk21_ctx_t *ctx);
void pk21_save(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) { if (ctx->is_exefs) {
npdm_process(ctx->npdm, ctx->tool_ctx); 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_exponent(void);
const unsigned char *pki_get_beta_nca0_label_hash(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) { void romfs_print(romfs_ctx_t *ctx) {
/* Is there anything meaningful to print here? */ /* Is there anything meaningful to print here? */
fprintf(stderr, "Error: RomFS printing not implemented.\n"); 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); memcpy(out, data, remaining);
return true; 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); mbedtls_md_free(&ctx->digest);
free(ctx); free(ctx);
} }

2
xci.c
View file

@ -257,4 +257,4 @@ void xci_print(xci_ctx_t *ctx) {
printf("Logo Partition:\n"); printf("Logo Partition:\n");
xci_print_hfs0(&ctx->logo_ctx); 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_save(xci_ctx_t *ctx);
void xci_print(xci_ctx_t *ctx); void xci_print(xci_ctx_t *ctx);
#endif #endif