mirror of
https://github.com/ipxe/ipxe
synced 2025-12-20 20:10:18 +03:00
[misc] Fix building on OpenBSD
OpenBSD throws compiler warnings that we can't reproduce on Linux, for some reason. Original patch from Dewey Hylton <dewey@hyltown.com>.
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user