summaryrefslogtreecommitdiffstats
path: root/source/dialogs/ssh.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-03-04 19:41:06 +0100
committerDave Davenport <qball@gmpclient.org>2017-03-04 19:41:06 +0100
commit3f4d58ef531a17d6667318a4e8f9390a383ffab6 (patch)
tree29aa6b8bd7c7420a236b3be2fd62404889d8ee53 /source/dialogs/ssh.c
parent8ee37012d1b55e69a66fb88727b14c284b6a367f (diff)
Indent code.
Diffstat (limited to 'source/dialogs/ssh.c')
-rw-r--r--source/dialogs/ssh.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/dialogs/ssh.c b/source/dialogs/ssh.c
index d2ffbed9..e8f67cd9 100644
--- a/source/dialogs/ssh.c
+++ b/source/dialogs/ssh.c
@@ -199,7 +199,7 @@ static char **read_hosts_file ( char ** retv, unsigned int *length )
// Reading one line per time.
while ( getline ( &buffer, &buffer_length, fd ) > 0 ) {
// Evaluate one line.
- unsigned int index = 0, ti = 0;
+ unsigned int index = 0, ti = 0;
char *token = buffer;
// Tokenize it.
@@ -284,10 +284,9 @@ static char ** get_ssh ( unsigned int *length )
retv = read_hosts_file ( retv, length );
}
- FILE *fd = NULL;
const char *hd = g_get_home_dir ();
path = g_build_filename ( hd, ".ssh", "config", NULL );
- fd = fopen ( path, "r" );
+ FILE *fd = fopen ( path, "r" );
if ( fd != NULL ) {
char *buffer = NULL;