diff --git a/src/cw/cw_read_from.c b/src/cw/cw_read_from.c index 54cab37a..323c65e0 100644 --- a/src/cw/cw_read_from.c +++ b/src/cw/cw_read_from.c @@ -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;