diff --git a/src/ncpserv.c b/src/ncpserv.c index 59595a1..b037c99 100644 --- a/src/ncpserv.c +++ b/src/ncpserv.c @@ -571,12 +571,12 @@ static void handle_ncp_request(void) } #endif if (1) { - int anz= + int anz; #if CALL_NWCONN_OVER_SOCKET - in_len; + anz = in_len; send_to_nwconn(c->fd, (char*)ncprequest, in_len); #else - if (write(c->fd, (char*)ncprequest, in_len) < 0) {} + anz = write(c->fd, (char*)ncprequest, in_len); #endif XDPRINTF((10,0, "write to %d, anz = %d", c->fd, anz)); }