aboutsummaryrefslogtreecommitdiff
path: root/pcap-rpcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-03-08 13:49:16 -0800
committerGuy Harris <guy@alum.mit.edu>2017-03-08 13:49:16 -0800
commit0345f75bcf0f7737475335ca140567444f7ba2da (patch)
tree47750c255be300ff3b9e61bde19336cffd0db7a7 /pcap-rpcap.c
parent9bd9c221515aa165a192326e6f41f7583b8a22f6 (diff)
downloadlibpcap-0345f75bcf0f7737475335ca140567444f7ba2da.tar.gz
More whitespace cleanup.
Diffstat (limited to 'pcap-rpcap.c')
-rw-r--r--pcap-rpcap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pcap-rpcap.c b/pcap-rpcap.c
index 6e012c73..b32d90b5 100644
--- a/pcap-rpcap.c
+++ b/pcap-rpcap.c
@@ -1083,7 +1083,6 @@ int pcap_startcapture_remote(pcap_t *fp)
if (sock_send(pr->rmt_sockctrl, sendbuf, sendbufidx, fp->errbuf, PCAP_ERRBUF_SIZE))
goto error;
-
/* Receive the RPCAP start capture reply message */
if (sock_recv(pr->rmt_sockctrl, (char *)&header, sizeof(struct rpcap_header), SOCK_RECEIVEALL_YES, fp->errbuf, PCAP_ERRBUF_SIZE) == -1)
goto error;
@@ -1815,7 +1814,7 @@ int rpcap_sendauth(SOCKET sock, struct pcap_rmtauth *auth, char *errbuf)
if (auth_type == RPCAP_RMTAUTH_PWD)
{
if (auth->username)
- rpauth->slen1 = (uint16) strlen(auth->username);
+ rpauth->slen1 = (uint16)strlen(auth->username);
else
rpauth->slen1 = 0;
@@ -1824,7 +1823,7 @@ int rpcap_sendauth(SOCKET sock, struct pcap_rmtauth *auth, char *errbuf)
return -1;
if (auth->password)
- rpauth->slen2 = (uint16) strlen(auth->password);
+ rpauth->slen2 = (uint16)strlen(auth->password);
else
rpauth->slen2 = 0;
@@ -1997,7 +1996,6 @@ int rpcap_checkmsg(char *errbuf, SOCKET sock, struct rpcap_header *header, uint8
errbuf[len] = 0;
}
-
va_end(ap);
return header->type;
}