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:
Erik Boasson 2019-07-05 22:35:19 +02:00 committed by eboasson
parent 5a83d422ea
commit bf5920385f

View file

@ -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];