Move the pfrom initialization from before the setjmp to after the
setjmp to avoid warnings on the powerpc build...
This commit is contained in:
parent
3950b71da6
commit
296fa4d2e7
@ -398,8 +398,6 @@ receive_packet(int peer, char *data, int size, struct sockaddr_storage *from,
|
||||
int n;
|
||||
static int waiting;
|
||||
|
||||
pfrom = (from == NULL) ? &from_local : from;
|
||||
|
||||
if (debug&DEBUG_PACKETS)
|
||||
tftp_log(LOG_DEBUG,
|
||||
"Waiting %d seconds for packet", timeoutpacket);
|
||||
@ -423,6 +421,7 @@ receive_packet(int peer, char *data, int size, struct sockaddr_storage *from,
|
||||
}
|
||||
|
||||
waiting++;
|
||||
pfrom = (from == NULL) ? &from_local : from;
|
||||
fromlen = sizeof(*pfrom);
|
||||
n = recvfrom(peer, data, size, 0, (struct sockaddr *)pfrom, &fromlen);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user