hfs0: Resolve -Wdiscarded-qualifier warnings

name is only ever assigned via string literals, which can cause
warnings, as string literals have a const qualifier associated with
them. This is only ever used for information display in console
printouts, so this is a safe change to make.
This commit is contained in:
Lioncash 2018-09-02 10:04:15 -04:00
parent 83077e3991
commit 50c164382e

2
hfs0.h
View file

@ -29,7 +29,7 @@ typedef struct {
uint64_t size;
hactool_ctx_t *tool_ctx;
hfs0_header_t *header;
char *name;
const char *name;
} hfs0_ctx_t;
static inline hfs0_file_entry_t *hfs0_get_file_entry(hfs0_header_t *hdr, uint32_t i) {