Reformatted

FossilOrigin-Name: b883e0ecd17c2bce137b17652fc95a30f9c103d6555d4e3b736422c653c3e17d
This commit is contained in:
7u83@mail.ru 2018-03-28 07:39:51 +00:00
parent 17aeec3516
commit 8d97c47fd7
1 changed files with 3 additions and 3 deletions

View File

@ -2,12 +2,12 @@
#include "log.h"
int cw_read_from(struct conn *conn, struct sockaddr_storage * from)
int cw_read_from(struct conn *conn, struct sockaddr_storage *from)
{
int n;
uint8_t buf[2024];
int len = 2024;
if (!conn->readfrom) {
cw_log(LOG_ERR, "Fatal error, no readfrom method available.");
errno = EPROTO;
@ -16,7 +16,7 @@ int cw_read_from(struct conn *conn, struct sockaddr_storage * from)
n = conn->readfrom(conn, buf, len, from);
if (n < 0)
return n;