mirror of
https://kernel.googlesource.com/pub/scm/network/tftp/tftp-hpa
synced 2025-04-29 19:39:54 +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.
|
* 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;
|
struct tftphdr *dp;
|
||||||
int n, size;
|
int n, size;
|
||||||
/* These are "static" to avoid longjmp funnies */
|
/* These are "static" to avoid longjmp funnies */
|
||||||
|
static struct tftphdr *oap;
|
||||||
static struct tftphdr *ap; /* ack buffer */
|
static struct tftphdr *ap; /* ack buffer */
|
||||||
static u_short block = 0;
|
static u_short block = 0;
|
||||||
static int acksize;
|
static int acksize;
|
||||||
u_short dp_opcode, dp_block;
|
u_short dp_opcode, dp_block;
|
||||||
unsigned long r_timeout;
|
unsigned long r_timeout;
|
||||||
|
|
||||||
|
oap = oack;
|
||||||
|
|
||||||
dp = w_init();
|
dp = w_init();
|
||||||
do {
|
do {
|
||||||
timeout = rexmtval;
|
timeout = rexmtval;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue