From b64547deb808046b8bac687242ab777c0bf0d73a Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 19 Feb 2008 09:41:06 +0000 Subject: Code cleanup from Kjartan: Removes unused code/variables. Uses right 2008-02-19 Alexander Larsson * lots of *.c files: Code cleanup from Kjartan: Removes unused code/variables. Uses right printf types Uses non-deprecated dbus calls. Removes spurious ; and , deleted extra checks for NULL for g_free svn path=/trunk/; revision=1302 --- programs/gvfs-mount.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'programs/gvfs-mount.c') diff --git a/programs/gvfs-mount.c b/programs/gvfs-mount.c index a28b626f..1865186b 100644 --- a/programs/gvfs-mount.c +++ b/programs/gvfs-mount.c @@ -59,7 +59,6 @@ prompt_for (const char *prompt, const char *default_value, gboolean echo) #ifdef HAVE_TERMIOS_H struct termios term_attr; int old_flags; - int res; gboolean restore_flags; #endif char data[256]; @@ -74,7 +73,7 @@ prompt_for (const char *prompt, const char *default_value, gboolean echo) #ifdef HAVE_TERMIOS_H restore_flags = FALSE; - if (!echo && (res = tcgetattr (STDIN_FILENO, &term_attr)) == 0) + if (!echo && tcgetattr (STDIN_FILENO, &term_attr) == 0) { old_flags = term_attr.c_lflag; term_attr.c_lflag &= ~ECHO; -- cgit v1.2.1