diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2004-09-08 12:41:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:58:35 -0500 |
commit | 9c69fe6522289c154505beea554426b0bf308e06 (patch) | |
tree | 58f0dfd61f956b9c6ed944a18827799ab5d1b299 /source4/gtk | |
parent | 3f7bf05f75c050c5132168b7eea6a346abfb482c (diff) | |
download | samba-9c69fe6522289c154505beea554426b0bf308e06.tar.gz samba-9c69fe6522289c154505beea554426b0bf308e06.tar.bz2 samba-9c69fe6522289c154505beea554426b0bf308e06.zip |
r2254: Fix a couple of compiler warnings...
(This used to be commit 8056f4a9a7f5065eeb3a3bec81977c5e4163bf8e)
Diffstat (limited to 'source4/gtk')
-rw-r--r-- | source4/gtk/common/gtk-smb.c | 8 | ||||
-rw-r--r-- | source4/gtk/tools/gregedit.c | 2 |
2 files changed, 2 insertions, 8 deletions
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 (); |