diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-10-01 08:07:20 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-10-01 08:05:25 +0000 |
commit | 41ef2b01cdacb3c2497906429de8ff3bd519fd4e (patch) | |
tree | eb480d673a112e5fae52ee05c5321e716806edc6 /epan/dissectors/dcerpc | |
parent | 214b127d1e4953aa191e22e71d0d0b9f1efbe1b4 (diff) |
idl2wrs (DCERPC): fix some warning
* Fix -Wmissing-prototypes in
* Fix unused variable for drusapi (using _U_)
Need to fix indent and some unused function/variable to remove from DIRTY list
Change-Id: Ib6f325f0b54e2eb254ec38a41199b4b60a4d90a1
Reviewed-on: https://code.wireshark.org/review/4398
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/dcerpc')
4 files changed, 12 insertions, 3 deletions
diff --git a/epan/dissectors/dcerpc/budb/packet-dcerpc-budb-template.c b/epan/dissectors/dcerpc/budb/packet-dcerpc-budb-template.c index 200db60cbf..e1e57f7202 100644 --- a/epan/dissectors/dcerpc/budb/packet-dcerpc-budb-template.c +++ b/epan/dissectors/dcerpc/budb/packet-dcerpc-budb-template.c @@ -36,6 +36,9 @@ #include "packet-windows-common.h" #include "packet-dcerpc-budb.h" +void proto_register_budb(void); +void proto_reg_handoff_budb(void); + static int proto_budb = -1; ETH_HF diff --git a/epan/dissectors/dcerpc/butc/packet-dcerpc-butc-template.c b/epan/dissectors/dcerpc/butc/packet-dcerpc-butc-template.c index 88b0436b99..8ed0124383 100644 --- a/epan/dissectors/dcerpc/butc/packet-dcerpc-butc-template.c +++ b/epan/dissectors/dcerpc/butc/packet-dcerpc-butc-template.c @@ -35,6 +35,9 @@ #include "packet-windows-common.h" #include "packet-dcerpc-butc.h" +void proto_register_budc(void); +void proto_reg_handoff_budc(void); + static int proto_butc = -1; ETH_HF diff --git a/epan/dissectors/dcerpc/drsuapi/packet-dcerpc-drsuapi-template.c b/epan/dissectors/dcerpc/drsuapi/packet-dcerpc-drsuapi-template.c index dba2e89795..abb5747f27 100644 --- a/epan/dissectors/dcerpc/drsuapi/packet-dcerpc-drsuapi-template.c +++ b/epan/dissectors/dcerpc/drsuapi/packet-dcerpc-drsuapi-template.c @@ -36,6 +36,9 @@ #include "packet-windows-common.h" #include "packet-dcerpc-drsuapi.h" +void proto_register_drsuapi(void); +void proto_reg_handoff_drsuapi(void); + static int proto_drsuapi = -1; static int hf_drsuapi_DsReplicaSyncRequest1Info_nc_dn = -1; ETH_HF diff --git a/epan/dissectors/dcerpc/idl2wrs.c b/epan/dissectors/dcerpc/idl2wrs.c index 8dd5c57eab..eb50d8ec9e 100644 --- a/epan/dissectors/dcerpc/idl2wrs.c +++ b/epan/dissectors/dcerpc/idl2wrs.c @@ -1522,7 +1522,7 @@ static void parsetypedefstruct(int pass) FPRINTF(eth_hdr, "int %s(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep, int hf_index, guint32 param);\n", dissectorname); FPRINTF(eth_code, "\n"); FPRINTF(eth_code, "int\n"); - FPRINTF(eth_code, "%s(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, dcerpc_info *di, guint8 *drep, int hf_index, guint32 param _U_)\n", dissectorname); + FPRINTF(eth_code, "%s(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *parent_tree, dcerpc_info *di _U_, guint8 *drep _U_, int hf_index, guint32 param _U_)\n", dissectorname); FPRINTF(eth_code, "{\n"); FPRINTF(eth_code, " proto_item *item=NULL;\n"); FPRINTF(eth_code, " proto_tree *tree=NULL;\n"); @@ -2700,12 +2700,12 @@ static void parsefunction(int pass) } if((pass==1)&&(bi->flags&BI_IN)){ - FPRINTF(eth_code, " offset=%s(tvb, offset, pinfo, tree, drep);\n", ptmpstr); + FPRINTF(eth_code, " offset=%s(tvb, offset, pinfo, tree, di, drep);\n", ptmpstr); FPRINTF(eth_code, " offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);\n"); FPRINTF(eth_code, "\n"); } if((pass==2)&&(bi->flags&BI_OUT)){ - FPRINTF(eth_code, " offset=%s(tvb, offset, pinfo, tree, drep);\n", ptmpstr); + FPRINTF(eth_code, " offset=%s(tvb, offset, pinfo, tree, di, drep);\n", ptmpstr); FPRINTF(eth_code, " offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);\n"); FPRINTF(eth_code, "\n"); } |