medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 324e65047d4599e4831dcdbb109b07412cb52ee0
parent dcdaa1ea5e450e3c953b83f0e40073ab22280d45
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Dec 25 21:07:48 +0200

Cast to size_t instead of using to_unsigned as OpenBSD doesn't like it

Diffstat:
server/main.cc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/main.cc b/server/main.cc @@ -58,7 +58,7 @@ bool receive( int fd, char * buf, size_t * bytes_read, size_t buf_len, sockaddr_ err( 1, "recv" ); } - *bytes_read = to_unsigned( len ); + *bytes_read = ( size_t ) len; // char hbuf[ INET6_ADDRSTRLEN ], sbuf[NI_MAXSERV]; // if (getnameinfo( ( const sockaddr * ) &client_addr, client_addr_len, hbuf, sizeof(hbuf), sbuf,