Pārlūkot izejas kodu

Typo

tags/v0.9.3
Michael Brown 18 gadus atpakaļ
vecāks
revīzija
c0ec119ede
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2
    2
      src/tests/dhcptest.c

+ 2
- 2
src/tests/dhcptest.c Parādīt failu

@@ -82,9 +82,9 @@ static int test_dhcp_iscsi_boot ( struct net_device *netdev ) {
82 82
 
83 83
 	lun = strtoul ( rp_components[RP_LUN], NULL, 0 );
84 84
 	
85
-	dhcp_snprintf ( initiator_iqn, sizeof ( initiator_iqn ),
85
+	dhcp_snprintf ( initiator_iqn_buf, sizeof ( initiator_iqn_buf ),
86 86
 			find_global_dhcp_option ( DHCP_ISCSI_INITIATOR_IQN ) );
87
-	if ( ! *initiator_iqn )
87
+	if ( ! initiator_iqn_buf[0] )
88 88
 		initiator_iqn = "iqn.1900-01.localdomain.localhost:initiator";
89 89
 	dhcp_snprintf ( username, sizeof ( username ),
90 90
 			find_global_dhcp_option ( DHCP_EB_USERNAME ) );

Notiek ielāde…
Atcelt
Saglabāt