Skip to content

Commit a166237

Browse files
committed
Made a function parameter constant
1 parent caa2912 commit a166237

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/parser/file/binaryFile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ struct binaryFile* binaryFile_new(const char* fileName, const void* startAddress
6565
return toReturn;
6666
}
6767

68-
bool binaryFile_addr2String(struct binaryFile* self, void* address, struct callstack_frame* frame) {
68+
bool binaryFile_addr2String(struct binaryFile* self, const void* address, struct callstack_frame* frame) {
6969
return LCS_FILE(self, addr2String, address, frame);
7070
}
7171

src/parser/file/binaryFile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static inline void binaryFile_create(struct binaryFile* self) {
8383
* @param frame the callstack frame structure to store the information in
8484
* @return whether debug information was deducted successfully
8585
*/
86-
bool binaryFile_addr2String(struct binaryFile* self, void* address, struct callstack_frame* frame);
86+
bool binaryFile_addr2String(struct binaryFile* self, const void* address, struct callstack_frame* frame);
8787

8888
/**
8989
* Retrieves the function information available in the given binary file object.

0 commit comments

Comments
 (0)