size_t vs ssize_t for evbuffer_copyout
evbuffer_copyout returns a type of
ev_ssize_t, which maps to
ssize_t allowing for signed values. It returns the number of bytes read, or -1 if we can't drain the buffer.
ev_ssize_t evbuffer_copyout (struct evbuffer *buf, void *data_out, size_t datlen)
However, source:gdp/gdp_buf.c#L110 just uses
size_t. A simple fix would be just to correct it to
ssize_t, but that would change the API. What's a good fix?