From f6b7b705124a6ce97f5f6fcfc0c2165a36de3fb9 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sun, 31 May 2009 21:29:07 +0000 Subject: [PATCH] Fix minor issues in libstand. - Don't call tftp_makereq() with too many arguments. - Don't forget to close one of the comments. Submitted by: Pawel Worach --- lib/libstand/bootp.c | 2 +- lib/libstand/tftp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libstand/bootp.c b/lib/libstand/bootp.c index 401b691c9b0..eb4a8ba932d 100644 --- a/lib/libstand/bootp.c +++ b/lib/libstand/bootp.c @@ -49,7 +49,7 @@ __FBSDID("$FreeBSD$"); #define DHCP_ENV_NOVENDOR 1 /* do not parse vendor options */ #define DHCP_ENV_PXE 10 /* assume pxe vendor options */ -#define DHCP_ENV_FREEBSD 11 /* assume freebsd vendor options +#define DHCP_ENV_FREEBSD 11 /* assume freebsd vendor options */ /* set DHCP_ENV to one of the values above to export dhcp options to kenv */ #define DHCP_ENV DHCP_ENV_NO_VENDOR diff --git a/lib/libstand/tftp.c b/lib/libstand/tftp.c index fd1b4ee7a92..23594bbd67b 100644 --- a/lib/libstand/tftp.c +++ b/lib/libstand/tftp.c @@ -275,7 +275,7 @@ tftp_open(path, f) return(ENOMEM); } - res = tftp_makereq(tftpfile, path); + res = tftp_makereq(tftpfile); if (res) { free(tftpfile->path);