Fix ncpserv write path assignment and shutdown write warnings
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user