Skip to content

Commit ffd7d2c

Browse files
committed
Removed unused header inclusion
1 parent 531dd9b commit ffd7d2c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/parser/file/macho/machoFile.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
* CallstackLibrary, see the file LICENSE. If not, see <https://www.gnu.org/licenses/>.
2020
*/
2121

22-
#include <stdarg.h>
2322
#include <stdio.h>
2423
#include <stdlib.h>
2524
#include <string.h>
@@ -302,7 +301,7 @@ static inline bool machoFile_handleFunctionStarts(struct machoFile* self, struct
302301
const uint32_t offset = macho_maybeSwap(32, bitsReversed, command->dataoff);
303302
const uint32_t size = macho_maybeSwap(32, bitsReversed, command->datasize);
304303

305-
const void* bytes = baseAddress + offset + (self->_.inMemory ? (self->linkedit_vmaddr - self->text_vmaddr) - self->linkedit_fileoff : 0);
304+
const void* bytes = baseAddress + offset + (self->_.inMemory ? self->linkedit_vmaddr - self->text_vmaddr - self->linkedit_fileoff : 0);
306305
uint64_t funcAddr = self->text_vmaddr; // <--- TODO: What is the appropriate start when read from disk?
307306
for (size_t i = 0; i < size;) {
308307
funcAddr += getULEB128(bytes, &i);

0 commit comments

Comments
 (0)