Fix error when building QtShark:

...\capture_opts.h(94) : error C2461: 'remote_host' : constructor syntax missing formal parameters


svn path=/trunk/; revision=40723
This commit is contained in:
Bill Meier 2012-01-25 18:03:50 +00:00
parent 048744e701
commit 36209e8773
2 changed files with 5 additions and 5 deletions

View File

@ -90,7 +90,7 @@ typedef enum {
} interface_type;
#ifdef HAVE_PCAP_REMOTE
struct remote_host {
struct remote_host_info {
gchar *remote_host; /**< Host name or network address for remote capturing */
gchar *remote_port; /**< TCP port of remote RPCAP server */
gint auth_type; /**< Authentication type */
@ -103,7 +103,7 @@ struct remote_host {
typedef struct remote_options_tag {
capture_source src_type;
struct remote_host remote_host_opts;
struct remote_host_info remote_host_opts;
#ifdef HAVE_PCAP_SETSAMPLING
capture_sampling sampling_method;
int sampling_param;

View File

@ -669,7 +669,7 @@ iftype_combo_box_add (GtkWidget *iftype_cbx)
{
GtkTreeModel *model;
GtkTreeIter iter;
struct remote_host *rh;
struct remote_host_info *rh;
gboolean create_new = FALSE;
gchar *string;
guint i, pos = REMOTE_HOST_START;
@ -1502,7 +1502,7 @@ static void
recent_print_remote_host (gpointer key _U_, gpointer value, gpointer user)
{
FILE *rf = user;
struct remote_host *ri = value;
struct remote_host_info *ri = value;
fprintf (rf, RECENT_KEY_REMOTE_HOST ": %s,%s,%d\n", ri->remote_host, ri->remote_port, ri->auth_type);
}
@ -1521,7 +1521,7 @@ capture_remote_combo_add_recent(gchar *s)
{
GList *vals = prefs_get_string_list (s);
GList *valp = vals;
struct remote_host *rh;
struct remote_host_info *rh;
gint auth_type;
char *p;