mirror of
https://github.com/ipxe/ipxe
synced 2026-02-01 07:26:44 +03:00
[iscsi] Fix minor typo in ibft_set_ipaddr()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -91,7 +91,7 @@ struct ibft_strings {
|
|||||||
* @v in IPv4 address
|
* @v in IPv4 address
|
||||||
*/
|
*/
|
||||||
static void ibft_set_ipaddr ( struct ibft_ipaddr *ipaddr, struct in_addr in ) {
|
static void ibft_set_ipaddr ( struct ibft_ipaddr *ipaddr, struct in_addr in ) {
|
||||||
memset ( ipaddr, 0, sizeof ( ipaddr ) );
|
memset ( ipaddr, 0, sizeof ( *ipaddr ) );
|
||||||
if ( in.s_addr ) {
|
if ( in.s_addr ) {
|
||||||
ipaddr->in = in;
|
ipaddr->in = in;
|
||||||
ipaddr->ones = 0xffff;
|
ipaddr->ones = 0xffff;
|
||||||
|
|||||||
Reference in New Issue
Block a user