1
1

options: Remove unsused getopt option.

Found by clang-analyzer http://test.libssh.org/clang-analyzer/
Этот коммит содержится в:
Andreas Schneider 2011-01-06 10:03:15 +01:00
родитель 7d9f889911
Коммит 82547867eb

Просмотреть файл

@ -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;