mirror of https://github.com/ipxe/ipxe.git
[iscsi] Fix minor typo in ibft_set_ipaddr()
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/1/head
parent
711df439df
commit
def5b67560
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue