diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-12-02 21:15:49 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-12-02 21:15:49 +0000 |
commit | bd9f96738c50f2d8eb5f65cb1eeef88abaa6ba58 (patch) | |
tree | bba10b00745ee2278670863e1574d7760e2fec79 /gtk/io_stat.c | |
parent | 98c4d5d030c62c47200d56734e2cb7cd5fa5a20f (diff) |
From Didier Gautheron: put an "fvalue_t" structure into a "field_info"
structure, rather than separately allocating "fvalue_t"s and having the
"field_info" structure point to them - this appears to speed up protocol
tree construction a bit.
svn path=/trunk/; revision=9146
Diffstat (limited to 'gtk/io_stat.c')
-rw-r--r-- | gtk/io_stat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/io_stat.c b/gtk/io_stat.c index 37a9f37665..9fd40d2475 100644 --- a/gtk/io_stat.c +++ b/gtk/io_stat.c @@ -1,7 +1,7 @@ /* io_stat.c * io_stat 2002 Ronnie Sahlberg * - * $Id: io_stat.c,v 1.47 2003/10/27 23:12:53 guy Exp $ + * $Id: io_stat.c,v 1.48 2003/12/02 21:15:49 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -290,7 +290,7 @@ gtk_iostat_packet(void *g, packet_info *pinfo, epan_dissect_t *edt, void *dummy case FT_INT16: case FT_INT24: case FT_INT32: - new_int=fvalue_get_integer(((field_info *)gp->pdata[i])->value); + new_int=fvalue_get_integer(&((field_info *)gp->pdata[i])->value); if((new_int>it->int_max)||(it->frames==0)){ it->int_max=new_int; @@ -301,7 +301,7 @@ gtk_iostat_packet(void *g, packet_info *pinfo, epan_dissect_t *edt, void *dummy it->int_tot+=new_int; break; case FT_RELATIVE_TIME: - new_time=fvalue_get(((field_info *)gp->pdata[0])->value); + new_time=fvalue_get(&((field_info *)gp->pdata[0])->value); switch(git->calc_type){ #ifdef G_HAVE_UINT64 |