* strace.c (pfd2tcb): Fix for new tcbtab type.
(rebuild_pollv): Likewise.
(detach): Put variables used under [LINUX] inside #ifdef.
int pfd;
{
int i;
- struct tcb *tcp;
- for (i = 0, tcp = tcbtab; i < tcbtabsize; i++, tcp++) {
+ for (i = 0; i < tcbtabsize; i++) {
+ struct tcb *tcp = tcbtab[i];
if (tcp->pfd != pfd)
continue;
if (tcp->flags & TCB_INUSE)
int sig;
{
int error = 0;
+#ifdef LINUX
int status, resumed;
+#endif
if (tcp->flags & TCB_BPTSET)
sig = SIGKILL;
rebuild_pollv()
{
int i, j;
- struct tcb *tcp;
if (pollv != NULL)
free (pollv);
exit(1);
}
- for (i = j = 0, tcp = tcbtab; i < tcbtabsize; i++, tcp++) {
+ for (i = j = 0; i < tcbtabsize; i++) {
+ struct tcb *tcp = tcbtab[i];
if (!(tcp->flags & TCB_INUSE))
continue;
pollv[j].fd = tcp->pfd;