Skip to content

Commit

Permalink
[iscsi] Fix minor typo in ibft_set_ipaddr()
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Feb 24, 2011
1 parent 711df43 commit def5b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/block/ibft.c
Expand Up @@ -91,7 +91,7 @@ struct ibft_strings {
* @v in IPv4 address
*/
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 ) {
ipaddr->in = in;
ipaddr->ones = 0xffff;
Expand Down

0 comments on commit def5b67

Please sign in to comment.