summaryrefslogtreecommitdiff
path: root/package/ltrace/patches/patch-handle_event_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-04-30 13:26:35 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-04-30 13:31:20 +0200
commit5a43da1af12df3a39cd30b724bf9144850bd2764 (patch)
tree1480c5d41b739168d930ddf503f407218e35b98d /package/ltrace/patches/patch-handle_event_c
parent30d6f21d2fb3ca89a86346994a70a436afbb2e14 (diff)
experimental midori support
Diffstat (limited to 'package/ltrace/patches/patch-handle_event_c')
-rw-r--r--package/ltrace/patches/patch-handle_event_c19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/ltrace/patches/patch-handle_event_c b/package/ltrace/patches/patch-handle_event_c
new file mode 100644
index 000000000..c40853052
--- /dev/null
+++ b/package/ltrace/patches/patch-handle_event_c
@@ -0,0 +1,19 @@
+--- ltrace-0.7.3.orig/handle_event.c 2013-02-05 12:05:39.000000000 +0100
++++ ltrace-0.7.3/handle_event.c 2013-10-16 11:29:03.000000000 +0200
+@@ -533,6 +533,7 @@ calc_time_spent(Process *proc) {
+
+ static void
+ handle_sysret(Event *event) {
++ __attribute__((unused))unsigned d;
+ debug(DEBUG_FUNCTION, "handle_sysret(pid=%d, sysnum=%d)", event->proc->pid, event->e_un.sysnum);
+ if (event->proc->state != STATE_IGNORED) {
+ if (opt_T || options.summary) {
+@@ -544,7 +545,7 @@ handle_sysret(Event *event) {
+ event->e_un.sysnum));
+
+ assert(event->proc->callstack_depth > 0);
+- unsigned d = event->proc->callstack_depth - 1;
++ d = event->proc->callstack_depth - 1;
+ assert(event->proc->callstack[d].is_syscall);
+ callstack_pop(event->proc);
+ }