patch-handle_event_c 762 B

12345678910111213141516171819
  1. --- ltrace-0.7.3.orig/handle_event.c 2013-02-05 12:05:39.000000000 +0100
  2. +++ ltrace-0.7.3/handle_event.c 2013-10-16 11:29:03.000000000 +0200
  3. @@ -533,6 +533,7 @@ calc_time_spent(Process *proc) {
  4. static void
  5. handle_sysret(Event *event) {
  6. + __attribute__((unused))unsigned d;
  7. debug(DEBUG_FUNCTION, "handle_sysret(pid=%d, sysnum=%d)", event->proc->pid, event->e_un.sysnum);
  8. if (event->proc->state != STATE_IGNORED) {
  9. if (opt_T || options.summary) {
  10. @@ -544,7 +545,7 @@ handle_sysret(Event *event) {
  11. event->e_un.sysnum));
  12. assert(event->proc->callstack_depth > 0);
  13. - unsigned d = event->proc->callstack_depth - 1;
  14. + d = event->proc->callstack_depth - 1;
  15. assert(event->proc->callstack[d].is_syscall);
  16. callstack_pop(event->proc);
  17. }