aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-12-11 17:21:06 +0100
committerTobias Brunner <tobias@strongswan.org>2014-01-23 10:10:53 +0100
commitb0e14fcba6ffc544dd654965dbb2733ee5d6889d (patch)
treed8e9079c4c7f1aa54cae829445eb054e3ea882e2
parent2d7852d29a8c9a61e1396ade6052166bb94472b3 (diff)
downloadstrongswan-b0e14fcba6ffc544dd654965dbb2733ee5d6889d.tar.bz2
strongswan-b0e14fcba6ffc544dd654965dbb2733ee5d6889d.tar.xz
pki: Properly use ?: when defining option arrays
-rw-r--r--src/pki/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pki/command.c b/src/pki/command.c
index 984da59b4..593ff37fb 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