Fix compilation on windows (hopefully).
authortuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 16 May 2011 15:25:33 +0000 (15:25 +0000)
committertuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 16 May 2011 15:25:33 +0000 (15:25 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37179 f5534014-38df-0310-8fa8-9805f1628bb7

dumpcap.c

index 552b169fce32e4ae43fe467ce110e04eeff65553..8d00884cce025ca218ee79d2ea8f2a7355522df7 100644 (file)
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -2279,12 +2279,12 @@ capture_loop_open_input(capture_options *capture_opts, loop_data *ld,
                         sync_msg_str = g_strdup_printf(
                             "Unknown sampling method %d specified,\n"
                             "continue without packet sampling",
-                            interface_opts->sampling_method);
+                            interface_opts.sampling_method);
                         report_capture_error("Couldn't set the capture "
                                              "sampling", sync_msg_str);
                         g_free(sync_msg_str);
                     }
-                    samp->value = interface_opts->sampling_param;
+                    samp->value = interface_opts.sampling_param;
                 } else {
                     report_capture_error("Couldn't set the capture sampling",
                                          "Cannot get packet sampling data structure");