From ef56ba51d4f340ec3b121a03a1692ad288829058 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Tue, 19 May 2009 11:36:08 +0200 Subject: [PATCH] fixed compiler warnings --- src/charon/plugins/nm/gnome/auth-dialog/main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/charon/plugins/nm/gnome/auth-dialog/main.c b/src/charon/plugins/nm/gnome/auth-dialog/main.c index cd17a94c1..84b3387e1 100644 --- a/src/charon/plugins/nm/gnome/auth-dialog/main.c +++ b/src/charon/plugins/nm/gnome/auth-dialog/main.c @@ -116,7 +116,6 @@ int main (int argc, char *argv[]) gchar *name = NULL, *uuid = NULL, *service = NULL, *keyring = NULL, *pass; GOptionContext *context; GnomeProgram *program = NULL; - int exit_status = 1; char buf, *agent, *type; guint32 itemid; GtkWidget *dialog; @@ -221,8 +220,6 @@ int main (int argc, char *argv[]) } else { - GtkWidget *dialog; - dialog = gtk_message_dialog_new(NULL, 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _("Configuration uses ssh-agent for authentication, " @@ -235,7 +232,7 @@ int main (int argc, char *argv[]) printf("\n\n"); /* flush output, wait for input */ fflush(stdout); - fread(&buf, 1, sizeof(buf), stdin); + if (fread(&buf, 1, sizeof(buf), stdin)); g_object_unref(program); return 0; }