path: root/include
diff options
authorJan Engelhardt <>2010-10-22 22:07:25 +0200
committerJan Engelhardt <>2010-10-22 23:10:57 +0200
commit672366907b823a7748cb9a7252005145c522a385 (patch)
treee9cb23d7deb62f4a63877186f3082ffe11038b65 /include
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 <>
Diffstat (limited to 'include')
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h
index d35e1c1..d766183 100644
--- a/include/libmnl/libmnl.h
+++ b/include/libmnl/libmnl.h
@@ -16,7 +16,7 @@
struct mnl_socket;
extern struct mnl_socket *mnl_socket_open(int type);
-extern int mnl_socket_bind(struct mnl_socket *nl, int groups, int pid);
+extern int mnl_socket_bind(struct mnl_socket *nl, unsigned int groups, pid_t pid);
extern int mnl_socket_close(struct mnl_socket *nl);
extern int mnl_socket_get_fd(const struct mnl_socket *nl);
extern unsigned int mnl_socket_get_portid(const struct mnl_socket *nl);