From dbfc656f7bcbe0333d65536f0d7f3e52b6f24e74 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sat, 11 Mar 2017 08:44:42 -0500 Subject: [PATCH] Use SIZE_MAX instead of -1ULL for size_t parameter strutils_star_glob_match() receives a size_t. Passing -1ULL truncates the value implicitly on systems where size_t is 32-bit. It is cleaner to use SIZE_T. Signed-off-by: Mathieu Desnoyers --- lttng-events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lttng-events.c b/lttng-events.c index 6bfe710f..95a79cf7 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -1146,7 +1146,7 @@ static int lttng_match_enabler_star_glob(const char *desc_name, const char *pattern) { - if (!strutils_star_glob_match(pattern, -1ULL, desc_name, -1ULL)) + if (!strutils_star_glob_match(pattern, SIZE_MAX, desc_name, SIZE_MAX)) return 0; return 1; } -- 2.34.1