Fix warning when compiling with gcc46:
error: variable 'bp' set but not use Approved by: dim MFC After: 3 days
This commit is contained in:
parent
9a7e6bac47
commit
3e519b7cc1
@ -323,7 +323,6 @@ send_ack(int fp, uint16_t block)
|
|||||||
{
|
{
|
||||||
struct tftphdr *tp;
|
struct tftphdr *tp;
|
||||||
int size;
|
int size;
|
||||||
char *bp;
|
|
||||||
char buf[MAXPKTSIZE];
|
char buf[MAXPKTSIZE];
|
||||||
|
|
||||||
if (debug&DEBUG_PACKETS)
|
if (debug&DEBUG_PACKETS)
|
||||||
@ -332,7 +331,6 @@ send_ack(int fp, uint16_t block)
|
|||||||
DROPPACKETn("send_ack", 0);
|
DROPPACKETn("send_ack", 0);
|
||||||
|
|
||||||
tp = (struct tftphdr *)buf;
|
tp = (struct tftphdr *)buf;
|
||||||
bp = buf + 2;
|
|
||||||
size = sizeof(buf) - 2;
|
size = sizeof(buf) - 2;
|
||||||
tp->th_opcode = htons((u_short)ACK);
|
tp->th_opcode = htons((u_short)ACK);
|
||||||
tp->th_block = htons((u_short)block);
|
tp->th_block = htons((u_short)block);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user