summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-01-15 07:49:20 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-01-15 07:49:20 (GMT)
commitd056005482aa3de7145692a591d4ceb30e540d36 (patch)
treeb5551ed2d2e8d20a535ab4810fb0ea60f8e5af48
parent42a84fe085009942db57da6272f0461322a2eead (diff)
downloadcpython-d056005482aa3de7145692a591d4ceb30e540d36.zip
cpython-d056005482aa3de7145692a591d4ceb30e540d36.tar.gz
cpython-d056005482aa3de7145692a591d4ceb30e540d36.tar.bz2
Change build format of netlink addresses.
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 7259432..2bddd9f 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 */