mirror of
https://github.com/SciresM/hactool
synced 2024-11-24 21:13:07 +00:00
general: Silence -Wnewline-eof warnings
These warnings occur when building with the default template on macOS.
This commit is contained in:
parent
04ed8b9ee4
commit
0318763fe8
21 changed files with 21 additions and 22 deletions
2
aes.c
2
aes.c
|
@ -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
2
bktr.h
|
@ -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
|
||||
|
|
|
@ -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
2
hfs0.c
|
@ -107,4 +107,4 @@ void hfs0_print(hfs0_ctx_t *ctx) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
2
hfs0.h
2
hfs0.h
|
@ -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
2
kip.c
|
@ -299,4 +299,4 @@ void kip1_save(kip1_ctx_t *ctx) {
|
|||
fclose(f_uncmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
3
kip.h
3
kip.h
|
@ -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
2
nax0.c
|
@ -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
2
nax0.h
|
@ -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
|
||||
|
|
|
@ -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
2
nso.c
|
@ -123,4 +123,4 @@ void nso0_save(nso0_ctx_t *ctx) {
|
|||
}
|
||||
fclose(f_uncmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
2
nso.h
2
nso.h
|
@ -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
|
||||
|
|
|
@ -339,4 +339,4 @@ void pk21_save(pk21_ctx_t *ctx) {
|
|||
}
|
||||
ini1_save(&ctx->ini1_ctx);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
2
pfs0.c
|
@ -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
2
pki.h
|
@ -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
|
||||
|
|
2
romfs.c
2
romfs.c
|
@ -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
2
rsa.c
|
@ -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
2
sha.c
|
@ -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
2
xci.c
|
@ -257,4 +257,4 @@ void xci_print(xci_ctx_t *ctx) {
|
|||
printf("Logo Partition:\n");
|
||||
xci_print_hfs0(&ctx->logo_ctx);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
2
xci.h
2
xci.h
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue