diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2015-03-31 21:53:22 +0200 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2015-05-12 18:33:43 +0100 |
commit | ede75686ff6ee7d82119a25e746ee042ceef2aeb (patch) | |
tree | 4e12b648d1717974cb48475328f7f536b4e6d5a8 /dbus/dbus-nonce.h | |
parent | 720e3ccb62ad93b25950a4ed82144c98e8e24db8 (diff) | |
download | dbus-ede75686ff6ee7d82119a25e746ee042ceef2aeb.tar.gz |
Use typedef DBusSocket for sockets fd's to avoid conversion warnings.
[smcv: remove unneeded and invalid dbus-sysdeps.h from public header;
make prototype of _dbus_socketpair() consistent; undo conversion
of getaddrinfo result from int to SOCKET; don't call
_dbus_return_val_if_fail() from internal function]
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89444
Diffstat (limited to 'dbus/dbus-nonce.h')
-rw-r--r-- | dbus/dbus-nonce.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dbus/dbus-nonce.h b/dbus/dbus-nonce.h index 474ea728..26308fdd 100644 --- a/dbus/dbus-nonce.h +++ b/dbus/dbus-nonce.h @@ -27,6 +27,7 @@ #include <dbus/dbus-types.h> #include <dbus/dbus-errors.h> #include <dbus/dbus-string.h> +#include <dbus/dbus-sysdeps.h> DBUS_BEGIN_DECLS @@ -46,13 +47,13 @@ dbus_bool_t _dbus_noncefile_create (DBusNonceFile *noncefile, dbus_bool_t _dbus_noncefile_delete (DBusNonceFile *noncefile, DBusError *error); -dbus_bool_t _dbus_noncefile_check_nonce (int fd, +dbus_bool_t _dbus_noncefile_check_nonce (DBusSocket fd, const DBusNonceFile *noncefile, DBusError *error); const DBusString* _dbus_noncefile_get_path (const DBusNonceFile *noncefile); -int _dbus_accept_with_noncefile (int listen_fd, +DBusSocket _dbus_accept_with_noncefile(DBusSocket listen_fd, const DBusNonceFile *noncefile); // shared |