fix constness build error

This commit is contained in:
Matt Johnston 2019-03-21 00:21:38 +08:00
parent 8b4f60a7a1
commit 6fecc91d10
2 changed files with 2 additions and 2 deletions

View File

@ -214,7 +214,7 @@ void cli_getopts(int argc, char ** argv) {
cli_opts.always_accept_key = 1; cli_opts.always_accept_key = 1;
break; break;
case 'p': /* remoteport */ case 'p': /* remoteport */
next = &cli_opts.remoteport; next = (char**)&cli_opts.remoteport;
break; break;
#if DROPBEAR_CLI_PUBKEY_AUTH #if DROPBEAR_CLI_PUBKEY_AUTH
case 'i': /* an identityfile */ case 'i': /* an identityfile */

View File

@ -136,7 +136,7 @@ typedef struct cli_runopts {
char *progname; char *progname;
char *remotehost; char *remotehost;
char *remoteport; const char *remoteport;
char *own_user; char *own_user;
char *username; char *username;