mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
options: Remove unsused getopt option.
Found by clang-analyzer http://test.libssh.org/clang-analyzer/
This commit is contained in:
@@ -698,7 +698,6 @@ int ssh_options_getopt(ssh_session session, int *argcptr, char **argv) {
|
|||||||
char *cipher = NULL;
|
char *cipher = NULL;
|
||||||
char *identity = NULL;
|
char *identity = NULL;
|
||||||
char *port = NULL;
|
char *port = NULL;
|
||||||
char *bindport = NULL;
|
|
||||||
char **save = NULL;
|
char **save = NULL;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
int argc = *argcptr;
|
int argc = *argcptr;
|
||||||
@@ -728,7 +727,7 @@ int ssh_options_getopt(ssh_session session, int *argcptr, char **argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
opterr = 0; /* shut up getopt */
|
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) {
|
switch(i) {
|
||||||
case 'l':
|
case 'l':
|
||||||
user = optarg;
|
user = optarg;
|
||||||
@@ -736,9 +735,6 @@ int ssh_options_getopt(ssh_session session, int *argcptr, char **argv) {
|
|||||||
case 'p':
|
case 'p':
|
||||||
port = optarg;
|
port = optarg;
|
||||||
break;
|
break;
|
||||||
case 't':
|
|
||||||
bindport = optarg;
|
|
||||||
break;
|
|
||||||
case 'v':
|
case 'v':
|
||||||
debuglevel++;
|
debuglevel++;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user