From db506e5951c79e7aee639078959ccf5d84e621c1 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 22 Jun 2018 14:59:01 +0300 Subject: [PATCH] check_sizeof: fix a typo in the warning The message said "sizoef" instead of "sizeof". Signed-off-by: Dan Carpenter --- check_sizeof.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_sizeof.c b/check_sizeof.c index 786546c9..47885b1c 100644 --- a/check_sizeof.c +++ b/check_sizeof.c @@ -116,7 +116,7 @@ static void match_sizeof(struct expression *expr) if (expr->type == EXPR_PREOP && expr->op == '&') sm_msg("warn: sizeof(&pointer)?"); if (expr->type == EXPR_SIZEOF) - sm_msg("warn: sizoef(sizeof())?"); + sm_msg("warn: sizeof(sizeof())?"); /* the ilog2() macro is a valid place to check the size of a binop */ if (expr->type == EXPR_BINOP && !get_macro_name(expr->pos)) sm_msg("warn: taking sizeof binop"); -- 2.11.4.GIT