From 879a8177fca94a98a69a7c2f899d09a3c9843c5b Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 31 May 2008 17:33:05 +0200 Subject: fix warning, getsockname takes a socklen_t as third parameter --- src/rtnl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/rtnl.c b/src/rtnl.c index 29fc184..93820f1 100644 --- a/src/rtnl.c +++ b/src/rtnl.c @@ -196,7 +196,7 @@ int rtnl_receive(struct rtnl_handle *rtnl_handle) /* rtnl_open - constructor of rtnetlink module */ struct rtnl_handle *rtnl_open(void) { - size_t addrlen; + socklen_t addrlen; struct rtnl_handle *h; h = calloc(1, sizeof(struct rtnl_handle)); -- cgit v1.2.3