FT_BOOLEAN hf[] entry with a 0 'bitmask' should have 'display' = BASE_NONE;

Reformat long lines;
Use consistent indentation;
Do some general whitespace changes.

svn path=/trunk/; revision=41589
This commit is contained in:
Bill Meier 2012-03-16 02:24:57 +00:00
parent a2c94ef9bf
commit 43402e0119
2 changed files with 422 additions and 424 deletions

View File

@ -1,6 +1,6 @@
/* packet-idmp.c
* Routines for X.519 Internet Directly Mapped Procotol (IDMP) packet dissection
* Graeme Lunt 2020
* Graeme Lunt 2010
*
* $Id$
*
@ -265,18 +265,17 @@ static void idmp_reassemble_init (void)
}
/*--- proto_register_idmp -------------------------------------------*/
void proto_register_idmp(void) {
/* List of fields */
static hf_register_info hf[] =
void proto_register_idmp(void)
{
/* List of fields */
static hf_register_info hf[] = {
{ &hf_idmp_version,
{ "version", "idmp.version",
FT_INT8, BASE_DEC, NULL, 0,
"idmp.INTEGER", HFILL }},
{ &hf_idmp_final,
{ "final", "idmp.final",
FT_BOOLEAN, 8, NULL, 0,
FT_BOOLEAN, BASE_NONE, NULL, 0,
"idmp.BOOLEAN", HFILL }},
{ &hf_idmp_length,
{ "length", "idmp.length",

View File

@ -8,7 +8,7 @@
#line 1 "../../asn1/idmp/packet-idmp-template.c"
/* packet-idmp.c
* Routines for X.519 Internet Directly Mapped Procotol (IDMP) packet dissection
* Graeme Lunt 2020
* Graeme Lunt 2010
*
* $Id$
*
@ -747,18 +747,17 @@ static void idmp_reassemble_init (void)
}
/*--- proto_register_idmp -------------------------------------------*/
void proto_register_idmp(void) {
/* List of fields */
static hf_register_info hf[] =
void proto_register_idmp(void)
{
/* List of fields */
static hf_register_info hf[] = {
{ &hf_idmp_version,
{ "version", "idmp.version",
FT_INT8, BASE_DEC, NULL, 0,
"idmp.INTEGER", HFILL }},
{ &hf_idmp_final,
{ "final", "idmp.final",
FT_BOOLEAN, 8, NULL, 0,
FT_BOOLEAN, BASE_NONE, NULL, 0,
"idmp.BOOLEAN", HFILL }},
{ &hf_idmp_length,
{ "length", "idmp.length",
@ -935,7 +934,7 @@ void proto_register_idmp(void) {
NULL, HFILL }},
/*--- End of included file: packet-idmp-hfarr.c ---*/
#line 324 "../../asn1/idmp/packet-idmp-template.c"
#line 323 "../../asn1/idmp/packet-idmp-template.c"
};
/* List of subtrees */
@ -958,7 +957,7 @@ void proto_register_idmp(void) {
&ett_idmp_InvokeId,
/*--- End of included file: packet-idmp-ettarr.c ---*/
#line 332 "../../asn1/idmp/packet-idmp-template.c"
#line 331 "../../asn1/idmp/packet-idmp-template.c"
};
module_t *idmp_module;