svn commit: r229904 - head/libexec/tftpd
Eitan Adler
eadler at FreeBSD.org
Tue Jan 10 02:55:35 UTC 2012
Author: eadler (ports committer)
Date: Tue Jan 10 02:55:35 2012
New Revision: 229904
URL: http://svn.freebsd.org/changeset/base/229904
Log:
Fix warning when compiling with gcc46:
error: variable 'bp' set but not use
Approved by: dim
MFC After: 3 days
Modified:
head/libexec/tftpd/tftp-io.c
Modified: head/libexec/tftpd/tftp-io.c
==============================================================================
--- head/libexec/tftpd/tftp-io.c Tue Jan 10 02:21:48 2012 (r229903)
+++ head/libexec/tftpd/tftp-io.c Tue Jan 10 02:55:35 2012 (r229904)
@@ -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);
More information about the svn-src-all
mailing list