diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-09-11 22:25:33 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-09-11 22:25:33 +0000 |
commit | d8873511a77f2b58b420b83d719b204e4e18d127 (patch) | |
tree | 921a697c78e514c52d1a5ff85ed6f3e0b880dca0 /epan/expert.c | |
parent | 51875708f2d6af1b8b645e3ad4874b309bcf4d2c (diff) |
Frame numbers are unsigned, and they start at 1; 0 is what's used for
"unknown" for frame numbers. Note that in epan/frame_data.h, and make
the frame number in experts unsigned, and use 0 for "unknown", and
display it as an unsigned number - and, if it's 0, don't display it at
all.
Fix the signature of "expert_dlg_draw()" to match what a tap's draw
routine's signature is expected to be.
svn path=/trunk/; revision=15760
Diffstat (limited to 'epan/expert.c')
-rw-r--r-- | epan/expert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/expert.c b/epan/expert.c index dfa585f7e2..8691d7e15f 100644 --- a/epan/expert.c +++ b/epan/expert.c @@ -77,7 +77,7 @@ packet_info *pinfo, proto_item *pi, int group, int severity, const char *format, /* if this packet isn't loaded because of a read filter, don't output anything */ - if(pinfo->fd->num == -1) { + if(pinfo->fd->num == 0) { return; } @@ -87,7 +87,7 @@ packet_info *pinfo, proto_item *pi, int group, int severity, const char *format, formatted[sizeof(formatted) - 1] = '\0'; ei = se_alloc(sizeof(expert_info_t)); - ei->packet_num = pinfo ? pinfo->fd->num : -1; + ei->packet_num = pinfo ? pinfo->fd->num : 0; ei->group = group; ei->severity = severity; ei->protocol = se_strdup(pinfo->current_proto); |