From e917bca09924435f3fca23c01042543b1826c81e Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 27 Jan 2009 18:14:21 +0100 Subject: extensions: use UINT_MAX constants over open-coded numbers (2/2) Use the handy constants for ranges. Signed-off-by: Jan Engelhardt --- extensions/tos_values.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions/tos_values.c') diff --git a/extensions/tos_values.c b/extensions/tos_values.c index 0ab784da..2d5b4312 100644 --- a/extensions/tos_values.c +++ b/extensions/tos_values.c @@ -55,7 +55,7 @@ static bool tos_parse_numeric(const char *str, struct tos_value_mask *tvm, static bool tos_parse_symbolic(const char *str, struct tos_value_mask *tvm, unsigned int def_mask) { - const unsigned int max = 255; + const unsigned int max = UINT8_MAX; const struct tos_symbol_info *symbol; char *tmp; -- cgit v1.2.3