run master pidl
[metze/wireshark/wip.git] / capture-wpcap.c
index 876cd980d60d9bdc644282f9484692acf737e2f5..2467dc7be0becc2fc095c1bbbb65b634df8a8f00 100644 (file)
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "config.h"
 
 #include <stdio.h>
 #include <glib.h>
@@ -129,7 +127,7 @@ typedef struct {
        gboolean        optional;
 } symbol_table_t;
 
-#define SYM(x, y)      { STRINGIFY(x) , (gpointer) &CONCAT(p_,x), y }
+#define SYM(x, y)      { G_STRINGIFY(x) , (gpointer) &CONCAT(p_,x), y }
 
 void
 load_wpcap(void)
@@ -821,12 +819,12 @@ get_interface_list(int *err, char **err_str)
                                j = 0;
                                while (names[i] != 0) {
                                        if (j < MAX_WIN_IF_NAME_LEN)
-                                       ascii_name[j++] = (char) names[i++];
+                                               ascii_name[j++] = (char) names[i++];
                                }
                                ascii_name[j] = '\0';
                                i++;
                                il = g_list_append(il,
-                                   if_info_new(ascii_name, ascii_desc));
+                                   if_info_new(ascii_name, ascii_desc, FALSE));
                        }
                } else {
                        /*
@@ -846,7 +844,7 @@ get_interface_list(int *err, char **err_str)
                                 * that interface's description.
                                 */
                                il = g_list_append(il,
-                                   if_info_new(&win95names[i], desc));
+                                   if_info_new(&win95names[i], desc, FALSE));
 
                                /*
                                 * Skip to the next description.
@@ -905,7 +903,7 @@ cant_get_if_list_error_message(const char *err_str)
 void
 get_compiled_pcap_version(GString *str)
 {
-       g_string_append(str, "with WinPcap (" STRINGIFY(PCAP_VERSION) ")");
+       g_string_append(str, "with WinPcap (" G_STRINGIFY(WINPCAP_VERSION) ")");
 }
 
 /*