You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-util/injectso/files/injectso-0.2-gcc4.patch

33 lines
1.4 KiB

diff -x 'config*' -ur /var/tmp/portage/dev-util/injectso-0.2/work/injectso-0.2/procdbg.c /tmp/injectso-0.2/procdbg.c
--- a/injectso-0.2/procdbg.c 2002-07-13 06:06:00.000000000 +0100
+++ b/injectso-0.2/procdbg.c 2006-12-17 22:20:59.000000000 +0000
@@ -146,7 +146,7 @@
/* Now subtract the amount of space we need for the */
/* data to be pushed */
- (unsigned long) pvEsp -= iSize;
+ pvEsp -= (unsigned long) iSize;
/* Round it to a multiple of 8 (if it isn't already) */
/* (We use 8 since Sparc requires double word alignment) */
@@ -241,7 +241,7 @@
ptProcStatus->regs.eax = EINTR;
} else {
show_debug(3, "Restoring EIP to retry\n");
- (unsigned long) ptProcStatus->regs.eip = (unsigned long) ptProcStatus->regs.eip - 2;
+ ptProcStatus->regs.eip = (unsigned long) ptProcStatus->regs.eip - 2;
ptProcStatus->regs.eax = ptProcStatus->regs.orig_eax;
}
}
diff -x 'config*' -ur /var/tmp/portage/dev-util/injectso-0.2/work/injectso-0.2/readargs.c /tmp/injectso-0.2/readargs.c
--- a/injectso-0.2/readargs.c 2002-06-30 10:45:47.000000000 +0100
+++ b/injectso-0.2/readargs.c 2006-12-17 22:19:54.000000000 +0000
@@ -115,7 +115,6 @@
}
iError = 1;
break;
- default:
}
}