Account for DDSI_INCLUDE_SSM in parameterlist size
The parameter list table indices ought to be a small as possible to avoid wasting space, and that means the index size is dependent on whether or not DDSI_INCLUDE_SSM is set. Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
5a83d422ea
commit
bf5920385f
1 changed files with 4 additions and 2 deletions
|
@ -1105,10 +1105,12 @@ struct piddesc_index {
|
|||
|
||||
Sizes are such that the highest PID (without flags) in
|
||||
table are the last entry in the array. Checked by
|
||||
nn_plist_init_tables. */
|
||||
nn_plist_init_tables.
|
||||
|
||||
FIXME: should compute them at build-time */
|
||||
#ifdef DDSI_INCLUDE_SSM
|
||||
static const struct piddesc *piddesc_omg_index[115];
|
||||
#else
|
||||
#else /* status info is the highest */
|
||||
static const struct piddesc *piddesc_omg_index[114];
|
||||
#endif
|
||||
static const struct piddesc *piddesc_eclipse_index[19];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue