forked from mirrors/tftp-hpa-google
Get rid of an "incompatible pointer type" warning.
This commit is contained in:
parent
12737492eb
commit
b9ca0ec54b
1 changed files with 2 additions and 2 deletions
|
@ -503,9 +503,9 @@ tftp(struct tftphdr *tp, int size)
|
||||||
|
|
||||||
if ( ap != (ackbuf+2) ) {
|
if ( ap != (ackbuf+2) ) {
|
||||||
if ( tp->th_opcode == WRQ )
|
if ( tp->th_opcode == WRQ )
|
||||||
(*pf->f_recv)(pf, ackbuf, ap-ackbuf);
|
(*pf->f_recv)(pf, (struct tftphdr *)ackbuf, ap-ackbuf);
|
||||||
else
|
else
|
||||||
(*pf->f_send)(pf, ackbuf, ap-ackbuf);
|
(*pf->f_send)(pf, (struct tftphdr *)ackbuf, ap-ackbuf);
|
||||||
} else {
|
} else {
|
||||||
if (tp->th_opcode == WRQ)
|
if (tp->th_opcode == WRQ)
|
||||||
(*pf->f_recv)(pf, NULL, 0);
|
(*pf->f_recv)(pf, NULL, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue