Skip to content

Commit

Permalink
Compilation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Machata authored and pmachata committed Nov 11, 2015
1 parent dbf7ec8 commit a601214
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dwarf_prototypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <stdio.h>
#include <elfutils/libdwfl.h>
#include <dwarf.h>
#include <inttypes.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
Expand All @@ -27,7 +28,7 @@
#include "debug.h"

#define complain(die, format, ...) \
debug(DEBUG_FUNCTION, "%s() die '%s' @ 0x%lx: " format, \
debug(DEBUG_FUNCTION, "%s() die '%s' @ 0x%" PRIx64 ": " format, \
__func__, dwarf_diename(die), dwarf_dieoffset(die), \
##__VA_ARGS__)

Expand Down
3 changes: 2 additions & 1 deletion proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,8 @@ proc_add_library(struct process *proc, struct library *lib)
dwfl_module =
dwfl_report_elf(dwfl, lib->soname,
lib->pathname, -1,
(GElf_Addr) lib->base,
/* XXX double cast */
(GElf_Addr) (uintptr_t) lib->base,
false);
if (dwfl_module == NULL)
fprintf(stderr,
Expand Down

0 comments on commit a601214

Please sign in to comment.