Skip to content

Commit add6f85

Browse files
committed
Fixed a parameter not being constant
1 parent a166237 commit add6f85

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/parser/file/elf/elfFile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ bool elfFile_parse(struct elfFile* self) {
346346
* @param address the address to be translated
347347
* @return the optionally available debug information
348348
*/
349-
static inline optional_debugInfo_t elfFile_getDebugInfo(struct elfFile* self, void* address) {
349+
static inline optional_debugInfo_t elfFile_getDebugInfo(struct elfFile* self, const void* address) {
350350
optional_debugInfo_t toReturn = { .has_value = false };
351351

352352
const uint64_t translated = (uintptr_t) address - self->_.relocationOffset;
@@ -427,7 +427,7 @@ vector_pair_ptr_t elfFile_getTLSRegions(struct elfFile* self) {
427427
return (vector_pair_ptr_t) vector_initializer;
428428
}
429429

430-
bool elfFile_addr2String(struct elfFile* self, void* address, struct callstack_frame* frame) {
430+
bool elfFile_addr2String(struct elfFile* self, const void* address, struct callstack_frame* frame) {
431431
if (!BINARY_FILE_SUPER(self, maybeParse)) {
432432
return false;
433433
}

src/parser/file/elf/elfFile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ bool elfFile_parse(struct elfFile* self);
8686
* @param frame the callstack frame object to store the information in
8787
* @return whether the callstack frame object was filled successfully
8888
*/
89-
bool elfFile_addr2String(struct elfFile* self, void* address, struct callstack_frame* frame);
89+
bool elfFile_addr2String(struct elfFile* self, const void* address, struct callstack_frame* frame);
9090

9191
/**
9292
* Loads the function information for the function of the given name.

0 commit comments

Comments
 (0)