diff options
-rw-r--r-- | pcap-new.c | 2 | ||||
-rw-r--r-- | pcap-rpcap.c | 2 | ||||
-rw-r--r-- | pcap-rpcap.h | 4 | ||||
-rw-r--r-- | pcap/pcap.h | 4 |
4 files changed, 6 insertions, 6 deletions
@@ -66,7 +66,7 @@ * * ****************************************************/ -int pcap_findalldevs_ex(char *source, struct pcap_rmtauth *auth, pcap_if_t **alldevs, char *errbuf) +int pcap_findalldevs_ex(const char *source, struct pcap_rmtauth *auth, pcap_if_t **alldevs, char *errbuf) { int type; char name[PCAP_BUF_SIZE], path[PCAP_BUF_SIZE], filename[PCAP_BUF_SIZE]; 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 */ 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 diff --git a/pcap/pcap.h b/pcap/pcap.h index e13e7ee2..8b5ecba5 100644 --- a/pcap/pcap.h +++ b/pcap/pcap.h @@ -845,8 +845,8 @@ PCAP_API int pcap_parsesrcstr(const char *source, int *type, char *host, * For listing remote capture devices, pcap_findalldevs_ex() is currently * the only API available. */ -PCAP_API int pcap_findalldevs_ex(char *source, struct pcap_rmtauth *auth, - pcap_if_t **alldevs, char *errbuf); +PCAP_API int pcap_findalldevs_ex(const char *source, + struct pcap_rmtauth *auth, pcap_if_t **alldevs, char *errbuf); /* * Sampling methods. |