diff options
author | Alexander Larsson <alexl@redhat.com> | 2008-02-19 09:41:06 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2008-02-19 09:41:06 +0000 |
commit | b64547deb808046b8bac687242ab777c0bf0d73a (patch) | |
tree | 3c7b9cb07e93beabc2f2efbe879ee279a525c449 /programs/gvfs-mount.c | |
parent | 31a620e564b9edb751c19c71193ca73123faddb4 (diff) | |
download | gvfs-b64547deb808046b8bac687242ab777c0bf0d73a.tar.gz |
Code cleanup from Kjartan: Removes unused code/variables. Uses right
2008-02-19 Alexander Larsson <alexl@redhat.com>
* 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
Diffstat (limited to 'programs/gvfs-mount.c')
-rw-r--r-- | programs/gvfs-mount.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |