8000 gh-110093: Partially revert previous change in socketmodule.c by serhiy-storchaka · Pull Request #111120 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-110093: Partially revert previous change in socketmodule.c #111120

New issue 8000

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-110093: Partially revert previous change in socketmodule.c
  • Loading branch information
serhiy-storchaka committed Oct 20, 2023
commit 4b878773d5fb15fc43aeafd196cc8b34e55fabe9
4 changes: 3 additions & 1 deletion Modules/socketmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,9 @@ makesockaddr(SOCKET_T sockfd, struct sockaddr *addr, size_t addrlen, int proto)
#if defined(__NetBSD__) || defined(__DragonFly__)
return makebdaddr(&_BT_HCI_MEMB(a, bdaddr));
#else /* __NetBSD__ || __DragonFly__ */
return PyLong_FromLong(_BT_HCI_MEMB(a, dev));
PyObject *ret = NULL;
ret = Py_BuildValue("i", _BT_HCI_MEMB(a, dev));
return ret;
#endif /* !(__NetBSD__ || __DragonFly__) */
}

Expand Down
0