aboutsummaryrefslogtreecommitdiff
path: root/pcap-rpcap.h
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.h
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.h')
-rw-r--r--pcap-rpcap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-rpcap.h b/pcap-rpcap.h
index be31c40d..6ad6d98d 100644
--- a/pcap-rpcap.h
+++ b/pcap-rpcap.h
@@ -43,7 +43,7 @@ pcap_t *pcap_open_rpcap(const char *source, int snaplen, int flags,
/*
* Internal interfaces for "pcap_findalldevs_ex()".
*/
-int pcap_findalldevs_ex_remote(char *source, struct pcap_rmtauth *auth,
- pcap_if_t **alldevs, char *errbuf);
+int pcap_findalldevs_ex_remote(const char *source,
+ struct pcap_rmtauth *auth, pcap_if_t **alldevs, char *errbuf);
#endif