event/SocketEvent: move ssize_t to class BufferedSocket

This commit is contained in:
Max Kellermann 2022-07-04 09:54:07 +02:00
parent e7b15a9041
commit 5e68531428
2 changed files with 2 additions and 6 deletions

View File

@ -26,6 +26,7 @@
#include <cassert>
#include <cstdint>
#include <exception>
#include <type_traits>
class EventLoop;
@ -39,7 +40,7 @@ protected:
SocketEvent event;
public:
using ssize_t = SocketEvent::ssize_t;
using ssize_t = std::make_signed<size_t>::type;
BufferedSocket(SocketDescriptor _fd, EventLoop &_loop) noexcept
:event(_loop, BIND_THIS_METHOD(OnSocketReady), _fd) {

View File

@ -25,9 +25,6 @@
#include "util/BindMethod.hxx"
#include "util/IntrusiveList.hxx"
#include <cstddef>
#include <type_traits>
class EventLoop;
/**
@ -75,8 +72,6 @@ public:
*/
static constexpr unsigned IMPLICIT_FLAGS = ERROR|HANGUP;
using ssize_t = std::make_signed<size_t>::type;
SocketEvent(EventLoop &_loop, Callback _callback,
SocketDescriptor _fd=SocketDescriptor::Undefined()) noexcept
:loop(_loop),