Arrays indexed by a 1-octet unsigned value, if we don't know which

values are permitted, must have 256 elements, not 255 elements.

svn path=/trunk/; revision=9399
This commit is contained in:
Guy Harris 2003-12-21 22:24:41 +00:00
parent ecbfe2fb77
commit a97af4919b
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@
*
* MUCH code modified from service_response_time_table.c.
*
* $Id: ansi_map_stat.c,v 1.6 2003/12/21 22:21:45 guy Exp $
* $Id: ansi_map_stat.c,v 1.7 2003/12/21 22:24:41 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -67,7 +67,7 @@ typedef struct _ansi_map_stat_dlg_t {
char *entries[3];
} ansi_map_stat_dlg_t;
#define N_MESSAGE_TYPES 0xff
#define N_MESSAGE_TYPES 256
typedef struct _ansi_map_stat_t {
int message_type[N_MESSAGE_TYPES];

View File

@ -5,7 +5,7 @@
*
* MUCH code modified from service_response_time_table.c.
*
* $Id: isup_stat.c,v 1.6 2003/12/21 22:21:45 guy Exp $
* $Id: isup_stat.c,v 1.7 2003/12/21 22:24:41 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -67,7 +67,7 @@ typedef struct _isup_stat_dlg_t {
char *entries[4];
} isup_stat_dlg_t;
#define N_MESSAGE_TYPES 0xff
#define N_MESSAGE_TYPES 256
typedef struct _isup_stat_t {
int message_type[N_MESSAGE_TYPES];