Consistently use socklen_t for getsockname, getsockopt etc.
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 10 Feb 2016 13:11:28 +0000 (13:11 +0000)
committerRalf Habacker <ralf.habacker@freenet.de>
Thu, 11 Feb 2016 01:04:53 +0000 (02:04 +0100)
commit15868d2a3957f4e5056544844f29629fae674b61
treeb94cca0e0873bd103e8323025eeea913df97b8b3
parent93895bc3a51db6fee9e4eed872f18f9b912bacba
Consistently use socklen_t for getsockname, getsockopt etc.

This fixes signedness mismatch warnings on platforms where socklen_t
is unsigned, notably Linux (where it's an unsigned int).

We still use int for the fallback case where the platform does not
define socklen_t, because that was the traditional (pre-POSIX) type:
for details see NOTES in Linux accept(2),
<http://manpages.debian.org/cgi-bin/man.cgi?query=accept&sektion=2>.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=93069
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
dbus/dbus-sysdeps-unix.c
tools/dbus-print-message.c