From 9c69fe6522289c154505beea554426b0bf308e06 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 8 Sep 2004 12:41:12 +0000 Subject: r2254: Fix a couple of compiler warnings... (This used to be commit 8056f4a9a7f5065eeb3a3bec81977c5e4163bf8e) --- source4/gtk/common/gtk-smb.c | 8 ++------ source4/gtk/tools/gregedit.c | 2 -- 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'source4/gtk') diff --git a/source4/gtk/common/gtk-smb.c b/source4/gtk/common/gtk-smb.c index 310b7a1b92..cc7013edc7 100644 --- a/source4/gtk/common/gtk-smb.c +++ b/source4/gtk/common/gtk-smb.c @@ -47,9 +47,9 @@ void gtk_show_ntstatus(GtkWidget *win, NTSTATUS status) static void on_browse_activate (GtkButton *button, gpointer user_data) { GtkRpcBindingDialog *rbd = user_data; - GtkSelectHostDialog *shd = gtk_select_host_dialog_new(TRUE); + GtkWidget *shd = gtk_select_host_dialog_new(TRUE); if(gtk_dialog_run(GTK_DIALOG(shd)) == GTK_RESPONSE_ACCEPT) { - gtk_entry_set_text(GTK_ENTRY(rbd->entry_host), gtk_select_host_dialog_get_host(shd)); + gtk_entry_set_text(GTK_ENTRY(rbd->entry_host), gtk_select_host_dialog_get_host(GTK_SELECT_HOST_DIALOG(shd))); } gtk_widget_destroy(GTK_WIDGET(shd)); @@ -61,8 +61,6 @@ static void gtk_rpc_binding_dialog_init (GtkRpcBindingDialog *gtk_rpc_binding_di GtkWidget *vbox1; GtkWidget *vbox6; GtkWidget *frame_transport; - GtkWidget *hbox2; - GtkWidget *lbl_transport; GtkWidget *label1; GtkWidget *frame_host; GtkWidget *hbox1; @@ -285,7 +283,6 @@ const char *gtk_rpc_binding_dialog_get_binding(GtkRpcBindingDialog *d, char *pip const char *transport; const char *host; char *options = NULL; - char *binding = NULL; /* Format: TRANSPORT:host:[\pipe\foo,foo,foo] */ @@ -318,7 +315,6 @@ GtkWidget *create_gtk_samba_about_dialog (char *appname) { GtkWidget *samba_about_dialog; GtkWidget *dialog_vbox1; - GtkWidget *image1; GtkWidget *label1; GtkWidget *label3; GtkWidget *label2; diff --git a/source4/gtk/tools/gregedit.c b/source4/gtk/tools/gregedit.c index 081028ee18..3297399b67 100644 --- a/source4/gtk/tools/gregedit.c +++ b/source4/gtk/tools/gregedit.c @@ -40,7 +40,6 @@ static void expand_key(GtkTreeView *treeview, GtkTreeIter *parent, GtkTreePath * GtkTreeIter firstiter, iter, tmpiter; REG_KEY *k, *sub; char *name; - GValue value; WERROR error; int i; @@ -330,7 +329,6 @@ static GtkWidget* create_mainwin (void) GtkWidget *tree_vals; GtkWidget *statusbar; GtkAccelGroup *accel_group; - GtkTreeIter iter, child; accel_group = gtk_accel_group_new (); -- cgit