pimd: use socklen_t consistently
diff --git a/pimd/pim_sock.h b/pimd/pim_sock.h
index 3f026dc..29b5aee 100644
--- a/pimd/pim_sock.h
+++ b/pimd/pim_sock.h
@@ -52,6 +52,6 @@
 
 int pim_socket_mcastloop_get(int fd);
 
-int pim_socket_getsockname(int fd, struct sockaddr *name, int *namelen);
+int pim_socket_getsockname(int fd, struct sockaddr *name, socklen_t *namelen);
 
 #endif /* PIM_SOCK_H */