aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--capture-pcap-util.c2
-rw-r--r--capture-pcap-util.h2
-rw-r--r--capture.c2
-rw-r--r--capture.h2
-rw-r--r--capture_sync.c2
-rw-r--r--capture_sync.h2
6 files changed, 6 insertions, 6 deletions
diff --git a/capture-pcap-util.c b/capture-pcap-util.c
index 4cf7f4995d..129712d426 100644
--- a/capture-pcap-util.c
+++ b/capture-pcap-util.c
@@ -366,7 +366,7 @@ create_data_link_info(int dlt)
}
GList *
-get_pcap_linktype_list(char *devname, char **err_str)
+get_pcap_linktype_list(const char *devname, char **err_str)
{
GList *linktype_list = NULL;
pcap_t *pch;
diff --git a/capture-pcap-util.h b/capture-pcap-util.h
index 259a8ed48c..6591711be2 100644
--- a/capture-pcap-util.h
+++ b/capture-pcap-util.h
@@ -91,7 +91,7 @@ typedef struct {
char *description; /* descriptive name from wiretap e.g. "Ethernet", NULL if unknown */
} data_link_info_t;
-GList *get_pcap_linktype_list(char *devname, char **err_str);
+GList *get_pcap_linktype_list(const char *devname, char **err_str);
void free_pcap_linktype_list(GList *linktype_list);
/* get/set the link type of an interface */
diff --git a/capture.c b/capture.c
index d615a4e4bd..3e72a9f16a 100644
--- a/capture.c
+++ b/capture.c
@@ -695,7 +695,7 @@ capture_interface_list(int *err, char **err_str)
/* XXX - We parse simple text output to get our interface list. Should
* we use "real" data serialization instead, e.g. via XML? */
GList *
-capture_pcap_linktype_list(gchar *ifname, char **err_str)
+capture_pcap_linktype_list(const gchar *ifname, char **err_str)
{
GList *linktype_list = NULL;
int err, i;
diff --git a/capture.h b/capture.h
index 25bbb9ab88..79084bd833 100644
--- a/capture.h
+++ b/capture.h
@@ -90,7 +90,7 @@ extern GList *capture_interface_list(int *err, char **err_str);
/**
* Fetch the linktype list for the specified interface from a child process.
*/
-extern GList *capture_pcap_linktype_list(char *devname, char **err_str);
+extern GList *capture_pcap_linktype_list(const char *devname, char **err_str);
struct if_stat_cache_s;
diff --git a/capture_sync.c b/capture_sync.c
index fed74a4a2a..f2d137d516 100644
--- a/capture_sync.c
+++ b/capture_sync.c
@@ -870,7 +870,7 @@ sync_interface_list_open(gchar **msg) {
* exit value. In either case, msg must be freed with g_free().
*/
int
-sync_linktype_list_open(gchar *ifname, gchar **msg) {
+sync_linktype_list_open(const gchar *ifname, gchar **msg) {
int argc;
const char **argv;
diff --git a/capture_sync.h b/capture_sync.h
index 4abbfb1758..a498043454 100644
--- a/capture_sync.h
+++ b/capture_sync.h
@@ -69,7 +69,7 @@ sync_interface_list_open(gchar **msg);
/** Get a linktype list using dumpcap */
extern int
-sync_linktype_list_open(gchar *ifname, gchar **msg);
+sync_linktype_list_open(const gchar *ifname, gchar **msg);
/** Start getting interface statistics using dumpcap. */
extern int