aboutsummaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-02-05 11:50:49 +0100
committerAndreas Schneider <asn@cryptomilk.org>2012-02-05 11:50:49 +0100
commitee774479deb609fdb6989c7c452d6007ab4d3384 (patch)
treebb8b7b77a2354322b18090326bf794ed206332d5 /src/misc.c
parent840f75f10c4e9fd7f6fb6289ae9902a40906bde6 (diff)
downloadlibssh-ee774479deb609fdb6989c7c452d6007ab4d3384.tar.gz
libssh-ee774479deb609fdb6989c7c452d6007ab4d3384.tar.xz
libssh-ee774479deb609fdb6989c7c452d6007ab4d3384.zip
session: Use a struct for all options.
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/misc.c b/src/misc.c
index 8d095133..3bf03493 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -729,7 +729,7 @@ char *ssh_path_expand_escape(ssh_session session, const char *s) {
switch (*p) {
case 'd':
- x = strdup(session->sshdir);
+ x = strdup(session->opts.sshdir);
break;
case 'u':
x = ssh_get_local_username();
@@ -740,16 +740,16 @@ char *ssh_path_expand_escape(ssh_session session, const char *s) {
}
break;
case 'h':
- x = strdup(session->host);
+ x = strdup(session->opts.host);
break;
case 'r':
- x = strdup(session->username);
+ x = strdup(session->opts.username);
break;
case 'p':
- if (session->port < 65536) {
+ if (session->opts.port < 65536) {
char tmp[6];
- snprintf(tmp, sizeof(tmp), "%u", session->port);
+ snprintf(tmp, sizeof(tmp), "%u", session->opts.port);
x = strdup(tmp);
}
break;