From: Mathieu Desnoyers Date: Sat, 11 Mar 2017 13:44:42 +0000 (-0500) Subject: Use SIZE_MAX instead of -1ULL for size_t parameter X-Git-Tag: v2.10.0-rc1~6 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=dbfc656f7bcbe0333d65536f0d7f3e52b6f24e74;p=lttng-modules.git 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 --- 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; }