aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-07 12:14:14 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-07 12:14:14 -0800
commit04fe123818b87ad39ccecc3cac3da67798dbb89b (patch)
treed1be0928b1552a727783a6e935c01ef861bc81fa
parent459a865ecfd949e7819c7674d3b450a1d1182d05 (diff)
downloadsyslinux.git-04fe123818b87ad39ccecc3cac3da67798dbb89b.tar.gz
syslinux.git-04fe123818b87ad39ccecc3cac3da67798dbb89b.tar.xz
syslinux.git-04fe123818b87ad39ccecc3cac3da67798dbb89b.zip
sysdump: be_tftp.c: fix prototype
The init function now takes an additional length argument. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--com32/sysdump/be_tftp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/com32/sysdump/be_tftp.c b/com32/sysdump/be_tftp.c
index 61dd4ecf..e9a98873 100644
--- a/com32/sysdump/be_tftp.c
+++ b/com32/sysdump/be_tftp.c
@@ -86,13 +86,15 @@ static int send_ack_packet(struct backend *be, const void *pkt, size_t len)
return -1; /* No success... */
}
-static int be_tftp_open(struct backend *be, const char *argv[])
+static int be_tftp_open(struct backend *be, const char *argv[], size_t len)
{
char buffer[512+4+6];
int nlen;
const union syslinux_derivative_info *sdi =
syslinux_derivative_info();
+ (void)len;
+
be->tftp.my_ip = sdi->pxe.myip;
be->tftp.my_port = htons(local_port++);
be->tftp.srv_ip = pxe_dns(argv[1]);