Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd56b7ef

Browse files
committed
fix swoole_get_local_mac on macOS
1 parent74779ac commitd56b7ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎ext-src/php_swoole.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1742,7 +1742,7 @@ static PHP_FUNCTION(swoole_get_local_mac) {
17421742
array_init(return_value);
17431743

17441744
for (ifa = ifas; ifa !=NULL; ifa = ifa->ifa_next) {
1745-
if (ifa->ifa_addr &&(!ifa->ifa_flags & IFF_LOOPBACK) && ifa->ifa_addr->sa_family == AF_LINK) {
1745+
if (ifa->ifa_addr &&!(ifa->ifa_flags & IFF_LOOPBACK) && ifa->ifa_addr->sa_family == AF_LINK) {
17461746
structsockaddr_dl *sdl = (structsockaddr_dl *) ifa->ifa_addr;
17471747
if (sdl->sdl_alen ==6) {
17481748
add_assoc_address(return_value, ifa->ifa_name, (unsignedchar *)LLADDR(sdl));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp