1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00

Move the pfrom initialization from before the setjmp to after the

setjmp to avoid warnings on the powerpc build...
This commit is contained in:
Warner Losh 2010-09-15 15:38:47 +00:00
parent 198ec86bf9
commit 3dc2fd3f1e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212665

View File

@ -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);