From 82547867eb573d8b238c031cfa92667613a48266 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 6 Jan 2011 10:03:15 +0100 Subject: options: Remove unsused getopt option. Found by clang-analyzer http://test.libssh.org/clang-analyzer/ --- src/options.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/options.c') diff --git a/src/options.c b/src/options.c index 534012d..5a9c5bf 100644 --- a/src/options.c +++ b/src/options.c @@ -698,7 +698,6 @@ int ssh_options_getopt(ssh_session session, int *argcptr, char **argv) { char *cipher = NULL; char *identity = NULL; char *port = NULL; - char *bindport = NULL; char **save = NULL; int i = 0; int argc = *argcptr; @@ -728,7 +727,7 @@ int ssh_options_getopt(ssh_session session, int *argcptr, char **argv) { } opterr = 0; /* shut up getopt */ - while(cont && ((i = getopt(argc, argv, "c:i:Cl:p:vb:t:rd12")) != -1)) { + while(cont && ((i = getopt(argc, argv, "c:i:Cl:p:vb:rd12")) != -1)) { switch(i) { case 'l': user = optarg; @@ -736,9 +735,6 @@ int ssh_options_getopt(ssh_session session, int *argcptr, char **argv) { case 'p': port = optarg; break; - case 't': - bindport = optarg; - break; case 'v': debuglevel++; break; -- cgit