mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
libc/net/nscachedcli.c: remove write-only variables
Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
346eaa41f8
commit
0e00befcaf
@ -153,7 +153,6 @@ send_credentials(struct cached_connection_ *connection, int type)
|
||||
struct kevent eventlist;
|
||||
int nevents;
|
||||
ssize_t result;
|
||||
int res;
|
||||
|
||||
memset(&cmsg, 0, sizeof(cmsg));
|
||||
cmsg.hdr.cmsg_len = CMSG_LEN(sizeof(struct cmsgcred));
|
||||
@ -171,7 +170,7 @@ send_credentials(struct cached_connection_ *connection, int type)
|
||||
|
||||
EV_SET(&eventlist, connection->sockfd, EVFILT_WRITE, EV_ADD,
|
||||
NOTE_LOWAT, sizeof(int), NULL);
|
||||
res = _kevent(connection->write_queue, &eventlist, 1, NULL, 0, NULL);
|
||||
(void)_kevent(connection->write_queue, &eventlist, 1, NULL, 0, NULL);
|
||||
|
||||
nevents = _kevent(connection->write_queue, NULL, 0, &eventlist, 1,
|
||||
NULL);
|
||||
@ -474,10 +473,9 @@ int
|
||||
__close_cached_mp_write_session(struct cached_connection_ *ws)
|
||||
{
|
||||
int notification;
|
||||
int result;
|
||||
|
||||
notification = CET_MP_WRITE_SESSION_CLOSE_NOTIFICATION;
|
||||
result = safe_write(ws, ¬ification, sizeof(int));
|
||||
(void)safe_write(ws, ¬ification, sizeof(int));
|
||||
__close_cached_connection(ws);
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user