File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ std::string UniqueId::ethernetMacAddress() {
134
134
(unsigned char )LLADDR (sdl)[3 ],
135
135
(unsigned char )LLADDR (sdl)[4 ],
136
136
(unsigned char )LLADDR (sdl)[5 ]);
137
- goto end ;
137
+ break ;
138
138
}
139
139
}
140
140
@@ -177,7 +177,7 @@ std::string UniqueId::ethernetMacAddress() {
177
177
(unsigned char )ifr->ifr_addr .sa_data [4 ],
178
178
(unsigned char )ifr->ifr_addr .sa_data [5 ]);
179
179
180
- goto end ;
180
+ break ;
181
181
}
182
182
}
183
183
close (sock);
@@ -219,17 +219,14 @@ std::string UniqueId::ethernetMacAddress() {
219
219
(unsigned char )pAdapter->Address [3 ],
220
220
(unsigned char )pAdapter->Address [4 ],
221
221
(unsigned char )pAdapter->Address [5 ]);
222
- goto end ;
222
+ break ;
223
223
}
224
224
pAdapter = pAdapter->Next ;
225
225
}
226
226
227
227
free (pAdapterInfo);
228
228
#endif
229
229
230
- #if defined(__linux__) || defined(__gnu_linux__) || defined(DARWIN) || defined(WIN32)
231
- end:
232
- #endif
233
230
return std::string (reinterpret_cast <const char *>(mac));
234
231
#if defined(__linux__) || defined(__gnu_linux__) || defined(DARWIN) || defined(WIN32)
235
232
failed:
You can’t perform that action at this time.
0 commit comments