Commit c1f62a57 authored by Martin Pool's avatar Martin Pool

Use socklen_t for getpeername, since we hopefully now have it defined

on all platforms.
parent 08a740ff
......@@ -443,7 +443,7 @@ char *client_addr(int fd)
{
struct sockaddr sa;
struct sockaddr_in *sockin = (struct sockaddr_in *) (&sa);
int length = sizeof(sa);
socklen_t length = sizeof(sa);
static char addr_buf[100];
static int initialised;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment