Get rid of an "incompatible pointer type" warning.

This commit is contained in:
hpa 2001-07-21 01:43:01 +00:00
parent 12737492eb
commit b9ca0ec54b

View file

@ -503,9 +503,9 @@ tftp(struct tftphdr *tp, int size)
if ( ap != (ackbuf+2) ) {
if ( tp->th_opcode == WRQ )
(*pf->f_recv)(pf, ackbuf, ap-ackbuf);
(*pf->f_recv)(pf, (struct tftphdr *)ackbuf, ap-ackbuf);
else
(*pf->f_send)(pf, ackbuf, ap-ackbuf);
(*pf->f_send)(pf, (struct tftphdr *)ackbuf, ap-ackbuf);
} else {
if (tp->th_opcode == WRQ)
(*pf->f_recv)(pf, NULL, 0);