strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2d7852d
)
pki: Properly use ?: when defining option arrays
author
Tobias Brunner
<tobias@strongswan.org>
Wed, 11 Dec 2013 16:21:06 +0000
(17:21 +0100)
committer
Tobias Brunner
<tobias@strongswan.org>
Thu, 23 Jan 2014 09:10:53 +0000
(10:10 +0100)
src/pki/command.c
patch
|
blob
|
history
diff --git
a/src/pki/command.c
b/src/pki/command.c
index
984da59
..
593ff37
100644
(file)
--- a/
src/pki/command.c
+++ b/
src/pki/command.c
@@
-55,12
+55,12
@@
static options_t *options;
/**
* Global options used by all subcommands
*/
/**
* 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
*/
/**
* 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
/**
* Build command_opts/command_optstr for the active command