[ltrace-commits] 01/01: Compilation fixes
Petr Machata
pmachata-guest at moszumanska.debian.org
Tue Sep 2 13:25:29 UTC 2014
This is an automated email from the git hooks/post-receive script.
pmachata-guest pushed a commit to branch master
in repository ltrace.
commit 6c6bcc32ef65e3a9394e8efda472d8587cf9cb2a
Author: Petr Machata <pmachata at redhat.com>
Date: Tue Sep 2 13:39:08 2014 +0200
Compilation fixes
---
dwarf_prototypes.c | 3 ++-
proc.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dwarf_prototypes.c b/dwarf_prototypes.c
index 9c36904..a39219e 100644
--- a/dwarf_prototypes.c
+++ b/dwarf_prototypes.c
@@ -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>
@@ -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__)
diff --git a/proc.c b/proc.c
index bf2a172..6ac37e6 100644
--- a/proc.c
+++ b/proc.c
@@ -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,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/ltrace.git
More information about the ltrace-commits
mailing list