# HG changeset patch # User Matt Johnston # Date 1553098898 -28800 # Node ID 21dabe66f2c87a6b27abce82533140e429d0ac1b # Parent 228b086794b7f381d21f34699edbf77ede826625 fix constness build error diff -r 228b086794b7 -r 21dabe66f2c8 cli-runopts.c --- a/cli-runopts.c Thu Mar 21 00:09:07 2019 +0800 +++ b/cli-runopts.c Thu Mar 21 00:21:38 2019 +0800 @@ -214,7 +214,7 @@ 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 -r 228b086794b7 -r 21dabe66f2c8 runopts.h --- a/runopts.h Thu Mar 21 00:09:07 2019 +0800 +++ b/runopts.h Thu Mar 21 00:21:38 2019 +0800 @@ -136,7 +136,7 @@ char *progname; char *remotehost; - char *remoteport; + const char *remoteport; char *own_user; char *username;