diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-03-08 13:49:16 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-03-08 13:49:16 -0800 |
commit | 0345f75bcf0f7737475335ca140567444f7ba2da (patch) | |
tree | 47750c255be300ff3b9e61bde19336cffd0db7a7 /pcap-rpcap.c | |
parent | 9bd9c221515aa165a192326e6f41f7583b8a22f6 (diff) | |
download | libpcap-0345f75bcf0f7737475335ca140567444f7ba2da.tar.gz |
More whitespace cleanup.
Diffstat (limited to 'pcap-rpcap.c')
-rw-r--r-- | pcap-rpcap.c | 6 |
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; } |