From: Tobias Brunner Date: Wed, 11 Dec 2013 16:21:06 +0000 (+0100) Subject: pki: Properly use ?: when defining option arrays X-Git-Tag: 5.1.2rc1~52 X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=commitdiff_plain;h=b0e14fcba6ffc544dd654965dbb2733ee5d6889d pki: Properly use ?: when defining option arrays --- diff --git a/src/pki/command.c b/src/pki/command.c index 984da59..593ff37 100644 --- a/src/pki/command.c +++ b/src/pki/command.c @@ -55,12 +55,12 @@ static options_t *options; /** * Global options used by all subcommands */ -static struct option command_opts[MAX_COMMANDS > MAX_OPTIONS ?: MAX_OPTIONS]; +static struct option command_opts[MAX_COMMANDS > MAX_OPTIONS ? MAX_COMMANDS : MAX_OPTIONS]; /** * Global optstring used by all subcommands */ -static char command_optstring[(MAX_COMMANDS > MAX_OPTIONS ?: MAX_OPTIONS) * 3]; +static char command_optstring[(MAX_COMMANDS > MAX_OPTIONS ? MAX_COMMANDS : MAX_OPTIONS) * 3]; /** * Build command_opts/command_optstr for the active command