aboutsummaryrefslogtreecommitdiff
path: root/pcap-rpcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-12-25 00:46:46 -0800
committerGuy Harris <guy@alum.mit.edu>2018-12-25 00:46:46 -0800
commit46d4ce59e73c19b8596158f6817e6259abb78927 (patch)
treedf27a23a70cc830f04e892c7e0e527cce7d5d504 /pcap-rpcap.c
parent3f573ed8e49157f187e8024bd2952110abc86541 (diff)
More constification of arguments.
We don't modify the source argument to pcap_findalldevs_ex(), so make that a promise, so compilers don't get upset when a constant string is passed. See, for example: https://stackoverflow.com/questions/52397129/winpcap-findalldevs-const-char-incompatible-to-char
Diffstat (limited to 'pcap-rpcap.c')
-rw-r--r--pcap-rpcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-rpcap.c b/pcap-rpcap.c
index 8e7e1ada..16dcbf8f 100644
--- a/pcap-rpcap.c
+++ b/pcap-rpcap.c
@@ -2342,7 +2342,7 @@ freeaddr(struct pcap_addr *addr)
}
int
-pcap_findalldevs_ex_remote(char *source, struct pcap_rmtauth *auth, pcap_if_t **alldevs, char *errbuf)
+pcap_findalldevs_ex_remote(const char *source, struct pcap_rmtauth *auth, pcap_if_t **alldevs, char *errbuf)
{
struct activehosts *activeconn; /* active connection, if there is one */
int error; /* '1' if rpcap_remoteact_getsock returned an error */