diff options
author | H. Peter Anvin <hpa@zytor.com> | 2010-02-07 12:14:14 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-02-07 12:14:14 -0800 |
commit | 04fe123818b87ad39ccecc3cac3da67798dbb89b (patch) | |
tree | d1be0928b1552a727783a6e935c01ef861bc81fa /com32/sysdump | |
parent | 459a865ecfd949e7819c7674d3b450a1d1182d05 (diff) | |
download | syslinux-04fe123818b87ad39ccecc3cac3da67798dbb89b.tar.gz |
sysdump: be_tftp.c: fix prototype
The init function now takes an additional length argument.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/sysdump')
-rw-r--r-- | com32/sysdump/be_tftp.c | 4 |
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]); |