mirror of
https://kernel.googlesource.com/pub/scm/network/tftp/tftp-hpa
synced 2025-04-26 01:49:52 +03:00
tftpd: shut up one more setjmp complaint
One more place where the compiler complains about setjmp. Work around it by creating yet another static variable. Ugly, but it works. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
351907e3f0
commit
b9f2335e88
1 changed files with 5 additions and 1 deletions
|
@ -1660,17 +1660,21 @@ static void tftp_sendfile(const struct formats *pf, struct tftphdr *oap, int oac
|
|||
/*
|
||||
* Receive a file.
|
||||
*/
|
||||
static void tftp_recvfile(const struct formats *pf, struct tftphdr *oap, int oacklen)
|
||||
static void tftp_recvfile(const struct formats *pf,
|
||||
struct tftphdr *oack, int oacklen)
|
||||
{
|
||||
struct tftphdr *dp;
|
||||
int n, size;
|
||||
/* These are "static" to avoid longjmp funnies */
|
||||
static struct tftphdr *oap;
|
||||
static struct tftphdr *ap; /* ack buffer */
|
||||
static u_short block = 0;
|
||||
static int acksize;
|
||||
u_short dp_opcode, dp_block;
|
||||
unsigned long r_timeout;
|
||||
|
||||
oap = oack;
|
||||
|
||||
dp = w_init();
|
||||
do {
|
||||
timeout = rexmtval;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue