editcap: one more integer -> Boolean.

selected() returns a Boolean value indicating whether the packet with a
given number was selected by the packet-range arguments or not.


(cherry picked from commit f75e2e5956)
This commit is contained in:
Guy Harris 2020-12-24 07:09:19 +00:00
parent ac3579da34
commit c92409657d
1 changed files with 4 additions and 4 deletions

View File

@ -328,7 +328,7 @@ add_selection(char *sel, guint* max_selection)
/* Was the packet selected? */
static int
static gboolean
selected(guint recno)
{
guint i;
@ -336,14 +336,14 @@ selected(guint recno)
for (i = 0; i < max_selected; i++) {
if (selectfrm[i].inclusive) {
if (selectfrm[i].first <= recno && selectfrm[i].second >= recno)
return 1;
return TRUE;
} else {
if (recno == selectfrm[i].first)
return 1;
return TRUE;
}
}
return 0;
return FALSE;
}
static gboolean