If we're going to use a handle for the data handle, we need to get a
[obnox/wireshark/wip.git] / capture-pcap-util.c
index c6e205f077a1dea8e912afb9cd92e1ec51e140c8..db32cfb4c77cbce9ce8f15f0e40fe94548e1160d 100644 (file)
@@ -61,7 +61,7 @@
  * rest-of-the-universe libpcap.
  */
 int
-get_pcap_linktype(pcap_t *pch, char *devname
+get_pcap_linktype(pcap_t *pch, const char *devname
 #ifndef _AIX
        _U_
 #endif
@@ -69,7 +69,7 @@ get_pcap_linktype(pcap_t *pch, char *devname
 {
        int linktype;
 #ifdef _AIX
-       char *ifacename;
+       const char *ifacename;
 #endif
 
        linktype = pcap_datalink(pch);
@@ -348,7 +348,7 @@ create_data_link_info(int dlt)
 }
 
 GList *
-get_pcap_linktype_list(char *devname, char *err_buf)
+get_pcap_linktype_list(const char *devname, char *err_buf)
 {
        GList *linktype_list = NULL;
        pcap_t *pch;