From 2596a9aa9c25168e5e4f11cb42ebb3b85d51aae8 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 27 Jun 2008 22:35:26 +0100 Subject: [misc] Fix building on OpenBSD OpenBSD throws compiler warnings that we can't reproduce on Linux, for some reason. Original patch from Dewey Hylton . --- src/interface/pxe/pxe_tftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/interface/pxe') diff --git a/src/interface/pxe/pxe_tftp.c b/src/interface/pxe/pxe_tftp.c index 976298a8a..f5e762066 100644 --- a/src/interface/pxe/pxe_tftp.c +++ b/src/interface/pxe/pxe_tftp.c @@ -189,7 +189,7 @@ static int pxe_tftp_open ( uint32_t ipaddress, unsigned int port, if ( blksize < TFTP_DEFAULT_BLKSIZE ) blksize = TFTP_DEFAULT_BLKSIZE; snprintf ( uri_string, sizeof ( uri_string ), - "tftp://%s:%d%s%s?blksize=%d", + "tftp://%s:%d%s%s?blksize=%zd", inet_ntoa ( address ), ntohs ( port ), ( ( filename[0] == '/' ) ? "" : "/" ), filename, blksize ); DBG ( " %s", uri_string ); -- cgit v1.2.3-55-g7522