From: Martin v. Löwis Date: Sun, 15 Jan 2006 07:49:20 +0000 (+0000) Subject: Change build format of netlink addresses. X-Git-Tag: v2.5a0~823 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d056005482aa3de7145692a591d4ceb30e540d36;p=python Change build format of netlink addresses. --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 7259432a67..2bddd9fee5 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -958,7 +958,7 @@ makesockaddr(int sockfd, struct sockaddr *addr, int addrlen, int proto) case AF_NETLINK: { struct sockaddr_nl *a = (struct sockaddr_nl *) addr; - return Py_BuildValue("ii", a->nl_pid, a->nl_groups); + return Py_BuildValue("II", a->nl_pid, a->nl_groups); } #endif /* AF_NETLINK */