From 6fecc91d1056fb7e022abb6f411dcf30edae85a6 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Thu, 21 Mar 2019 00:21:38 +0800 Subject: [PATCH] fix constness build error --- cli-runopts.c | 2 +- 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 */ diff --git a/runopts.h b/runopts.h index 3123383..31eae1f 100644 --- a/runopts.h +++ b/runopts.h @@ -136,7 +136,7 @@ typedef struct cli_runopts { char *progname; char *remotehost; - char *remoteport; + const char *remoteport; char *own_user; char *username;