aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-pgsql.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-10-31 09:29:07 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-10-31 09:29:07 +0000
commit2d1bb39121cf739517b55c68a84e5d9ad5b31619 (patch)
treefff9b9d1a5f7445ca000040fe0c8399298acbac8 /epan/dissectors/packet-pgsql.c
parent4343de3513f4a1405f06ca9bdf82c134ac10594e (diff)
change the signature for the get_pdu_len() function pointer passed to tcp_dissect_pdus() to also include a packet_info pointer.
there are many reasons why some protocols actually need to be able to access the pinfo structure while determining the pdu size svn path=/trunk/; revision=19751
Diffstat (limited to 'epan/dissectors/packet-pgsql.c')
-rw-r--r--epan/dissectors/packet-pgsql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-pgsql.c b/epan/dissectors/packet-pgsql.c
index 915035a148..477e369672 100644
--- a/epan/dissectors/packet-pgsql.c
+++ b/epan/dissectors/packet-pgsql.c
@@ -89,7 +89,7 @@ static void dissect_pgsql_fe_msg(guchar, guint, tvbuff_t *, gint, proto_tree *);
static void dissect_pgsql_be_msg(guchar, guint, tvbuff_t *, gint, proto_tree *);
static void dissect_pgsql_msg(tvbuff_t *, packet_info *, proto_tree *);
static void dissect_pgsql(tvbuff_t *, packet_info *, proto_tree *);
-static guint pgsql_length(tvbuff_t *, int);
+static guint pgsql_length(packet_info *, tvbuff_t *, int);
static const value_string fe_messages[] = {
{ 'p', "Password message" },
@@ -389,7 +389,7 @@ dissect_pgsql(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
message starting at tvb[offset]. */
static guint
-pgsql_length(tvbuff_t *tvb, int offset)
+pgsql_length(packet_info *pinfo _U_, tvbuff_t *tvb, int offset)
{
gint n = 0;
guchar type;