Constify some arguments.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 21 Feb 2008 12:30:26 +0000 (12:30 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 21 Feb 2008 12:30:26 +0000 (12:30 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24407 f5534014-38df-0310-8fa8-9805f1628bb7

capture-pcap-util.c
capture-pcap-util.h
capture.c
capture.h
capture_sync.c
capture_sync.h

index 4cf7f4995d5b9aea9713949bc1ac0d26947b4452..129712d426fe8495d52010911b35c48216163ca5 100644 (file)
@@ -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;
index 259a8ed48cb022c700fd52095c656811fbf63a04..6591711be27d52b4ab300811fedfe32e586c64d9 100644 (file)
@@ -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 */
index d615a4e4bdde2f609080c37d1ac06ba0814f07de..3e72a9f16ab9ad3ca5ac16de2344dcb8e785e00f 100644 (file)
--- 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;
index 25bbb9ab88daaa9f742ab3092bc5165f9d5066ec..79084bd8334210d96af30cc6a2a36c07b58f3535 100644 (file)
--- 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;
index fed74a4a2a6251220100818c2360dc132fefea65..f2d137d51697213b94c5f25a0e04ba911281677b 100644 (file)
@@ -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;
 
index 4abbfb17582568d0b699db7d5176d24d386451b3..a498043454435708788f8480c05889f35b0d526e 100644 (file)
@@ -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