[syslinux:master] sysdump: be_tftp.c: fix prototype

syslinux-bot for H. Peter Anvin hpa at zytor.com
Sun Feb 7 12:18:22 PST 2010


Commit-ID:  04fe123818b87ad39ccecc3cac3da67798dbb89b
Gitweb:     http://syslinux.zytor.com/commit/04fe123818b87ad39ccecc3cac3da67798dbb89b
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sun, 7 Feb 2010 12:14:14 -0800
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Sun, 7 Feb 2010 12:14:14 -0800

sysdump: be_tftp.c: fix prototype

The init function now takes an additional length argument.

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 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 61dd4ec..e9a9887 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]);



More information about the Syslinux-commits mailing list