aboutsummaryrefslogtreecommitdiff
path: root/rpcap-protocol.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-09-30 15:54:39 -0700
committerGuy Harris <guy@alum.mit.edu>2017-09-30 15:54:39 -0700
commit2c964209e1c17adeff27efa172bea9e3f38d54b0 (patch)
tree2e96a3d5c88ce79e361d1af1d8d047b3de735275 /rpcap-protocol.c
parentb0df8f30fe522088344f81ff1e5b45ec034acbc0 (diff)
Clean up #includes.
rpcap-protocol.h doesn't need portability.h or pcap/funcattrs.h, so don't include it. It does, however, need sockutils.h, for SOCKET. That means rpcap-protocol.c has to include portability.h, as it uses pcap_strerror().
Diffstat (limited to 'rpcap-protocol.c')
-rw-r--r--rpcap-protocol.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/rpcap-protocol.c b/rpcap-protocol.c
index b0a9652a..07e25602 100644
--- a/rpcap-protocol.c
+++ b/rpcap-protocol.c
@@ -40,12 +40,9 @@
#include <stdarg.h> /* for functions with variable number of arguments */
#include <errno.h> /* for the errno variable */
#include "sockutils.h"
+#include "portability.h"
#include "rpcap-protocol.h"
#include <pcap/pcap.h>
-#if 0
-#include "pcap-rpcap.h"
-#include "pcap-rpcap-int.h"
-#endif
/*
* This file contains functions used both by the rpcap client and the