summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-10-22 22:07:25 +0200
committerJan Engelhardt <jengelh@medozas.de>2010-10-22 23:10:57 +0200
commit672366907b823a7748cb9a7252005145c522a385 (patch)
treee9cb23d7deb62f4a63877186f3082ffe11038b65 /src
parent53bcdb544602074deb17839a75cd35b1fed6d599 (diff)
socket: use more appropriate types for mnl_socket_bind
groups, being a bitmask, should be unsigned; and let's also use pid_t for pid. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'src')
-rw-r--r--src/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.c b/src/socket.c
index 6ca3d3e..c9afd34 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -131,7 +131,7 @@ struct mnl_socket *mnl_socket_open(int bus)
* success, 0 is returned. You can use MNL_SOCKET_AUTOPID which is 0 for
* automatic port ID selection.
*/
-int mnl_socket_bind(struct mnl_socket *nl, int groups, int pid)
+int mnl_socket_bind(struct mnl_socket *nl, unsigned int groups, pid_t pid)
{
int ret;
socklen_t addr_len;