Skip to content

Commit a6b1a1a

Browse files
committed
Text protocols: Use u_int as return type for fetch_token()
It was 'int' but 1) fetch_token() return 0 or idx which is an 'u_int'. 2) fetch_token() is called with: idx = fetch_token(...); with idx an 'u_int'.
1 parent 91b2aa5 commit a6b1a1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util-print.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ mask62plen(const u_char *mask)
696696
* either a space character at the beginning of the line (this
697697
* includes a blank line) or no more tokens remaining on the line.
698698
*/
699-
static int
699+
static u_int
700700
fetch_token(netdissect_options *ndo, const u_char *pptr, u_int idx, u_int len,
701701
u_char *tbuf, size_t tbuflen)
702702
{

0 commit comments

Comments
 (0)