From a6b1a1a514c89a6a8cbf8e9cdcfd7e86c3de108e Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Tue, 2 Jan 2024 11:35:35 +0100 Subject: [PATCH] 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'. --- util-print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util-print.c b/util-print.c index e57fe19e..b8257674 100644 --- a/util-print.c +++ b/util-print.c @@ -696,7 +696,7 @@ mask62plen(const u_char *mask) * either a space character at the beginning of the line (this * includes a blank line) or no more tokens remaining on the line. */ -static int +static u_int fetch_token(netdissect_options *ndo, const u_char *pptr, u_int idx, u_int len, u_char *tbuf, size_t tbuflen) { -- 2.39.5