diff options
author | eadler <eadler@FreeBSD.org> | 2012-01-10 02:55:35 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-01-10 02:55:35 +0000 |
commit | a761ba449194307c31b6b1a7b0e4b5405befbc27 (patch) | |
tree | fafcc98a2d6d79f41f9eaa8f940bd5f259fd7ab6 /libexec/tftpd | |
parent | 15b1ff36092f77e72af4a2a0ea1ac76d6c89542f (diff) | |
download | FreeBSD-src-a761ba449194307c31b6b1a7b0e4b5405befbc27.zip FreeBSD-src-a761ba449194307c31b6b1a7b0e4b5405befbc27.tar.gz |
Fix warning when compiling with gcc46:
error: variable 'bp' set but not use
Approved by: dim
MFC After: 3 days
Diffstat (limited to 'libexec/tftpd')
-rw-r--r-- | libexec/tftpd/tftp-io.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libexec/tftpd/tftp-io.c b/libexec/tftpd/tftp-io.c index b396134..bc5379c 100644 --- a/libexec/tftpd/tftp-io.c +++ b/libexec/tftpd/tftp-io.c @@ -323,7 +323,6 @@ send_ack(int fp, uint16_t block) { struct tftphdr *tp; int size; - char *bp; char buf[MAXPKTSIZE]; if (debug&DEBUG_PACKETS) @@ -332,7 +331,6 @@ send_ack(int fp, uint16_t block) DROPPACKETn("send_ack", 0); tp = (struct tftphdr *)buf; - bp = buf + 2; size = sizeof(buf) - 2; tp->th_opcode = htons((u_short)ACK); tp->th_block = htons((u_short)block); |