File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ string getMachineName()
112
112
// ---------------------------------get MAC addresses ---------------------------------
113
113
// we just need this for purposes of unique machine id. So any one or two
114
114
// mac's is fine.
115
- uint16_t hashMacAddress (u8 * mac)
115
+ uint16_t hashMacAddress (uint8_t * mac)
116
116
{
117
117
uint16_t hash = 0 ;
118
118
@@ -145,11 +145,11 @@ void getMacHash(uint16_t& mac1, uint16_t& mac2)
145
145
if (!foundMac1)
146
146
{
147
147
foundMac1 = true ;
148
- mac1 = hashMacAddress ((u8 *)(LLADDR (sdl))); // sdl->sdl_data) +
148
+ mac1 = hashMacAddress ((uint8_t *)(LLADDR (sdl))); // sdl->sdl_data) +
149
149
sdl->sdl_nlen ) );
150
150
}
151
151
else {
152
- mac2 = hashMacAddress ((u8 *)(LLADDR (sdl))); // sdl->sdl_data) +
152
+ mac2 = hashMacAddress ((uint8_t *)(LLADDR (sdl))); // sdl->sdl_data) +
153
153
sdl->sdl_nlen ) );
154
154
break ;
155
155
}
@@ -190,10 +190,10 @@ void getMacHash(uint16_t& mac1, uint16_t& mac2)
190
190
if (!foundMac1)
191
191
{
192
192
foundMac1 = true ;
193
- mac1 = hashMacAddress ((u8 *)&(ifr->ifr_addr .sa_data ));
193
+ mac1 = hashMacAddress ((uint8_t *)&(ifr->ifr_addr .sa_data ));
194
194
}
195
195
else {
196
- mac2 = hashMacAddress ((u8 *)&(ifr->ifr_addr .sa_data ));
196
+ mac2 = hashMacAddress ((uint8_t *)&(ifr->ifr_addr .sa_data ));
197
197
break ;
198
198
}
199
199
}
You can’t perform that action at this time.
0 commit comments