diff options
author | Andreas Schneider <asn@cynapses.org> | 2011-01-06 10:03:15 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cynapses.org> | 2011-01-06 10:15:01 +0100 |
commit | 82547867eb573d8b238c031cfa92667613a48266 (patch) | |
tree | 347c84c7f4527a1d688e67bdc9e4aac7f8b32679 /src/options.c | |
parent | 7d9f88991159400d759e71190b1ebf48208d2ff8 (diff) | |
download | libssh-82547867eb573d8b238c031cfa92667613a48266.tar.gz libssh-82547867eb573d8b238c031cfa92667613a48266.tar.xz libssh-82547867eb573d8b238c031cfa92667613a48266.zip |
options: Remove unsused getopt option.
Found by clang-analyzer http://test.libssh.org/clang-analyzer/
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/options.c b/src/options.c index 534012de..5a9c5bf5 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; |