Fix ncpserv write path assignment and shutdown write warnings

This commit is contained in:
Mario Fetka
2026-04-20 23:39:42 +02:00
parent 79c745112c
commit 77587a0789

View File

@@ -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));
}