diff options
author | Matt Johnston <matt@ucc.asn.au> | 2019-03-21 00:21:38 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2019-03-21 00:21:38 +0800 |
commit | d8e17345a18b0d9584a5b3fad0b4e05b3278652e (patch) | |
tree | f9fbb4a7dd12d518064e81a8ea4e2ece4437e3bc | |
parent | ff97e856b6d13eb20aaac0493fa6921b466a64a3 (diff) | |
download | dropbear-d8e17345a18b0d9584a5b3fad0b4e05b3278652e.tar.gz |
fix constness build error
-rw-r--r-- | cli-runopts.c | 2 | ||||
-rw-r--r-- | runopts.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cli-runopts.c b/cli-runopts.c index a483345..7d1fffe 100644 --- a/cli-runopts.c +++ b/cli-runopts.c @@ -214,7 +214,7 @@ void cli_getopts(int argc, char ** argv) { cli_opts.always_accept_key = 1; break; case 'p': /* remoteport */ - next = &cli_opts.remoteport; + next = (char**)&cli_opts.remoteport; break; #if DROPBEAR_CLI_PUBKEY_AUTH case 'i': /* an identityfile */ @@ -136,7 +136,7 @@ typedef struct cli_runopts { char *progname; char *remotehost; - char *remoteport; + const char *remoteport; char *own_user; char *username; |