From 0d6f7fd6fd9dcaa62fb77a10d3a1ad8d0d74f980 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Sun, 8 Mar 2020 21:43:26 +0200 Subject: *: Replace `sizeof something` to sizeof(something) Satisfy checkpatch.pl requirements (check for sizeof without parenthesis) Signed-off-by: Donatas Abraitis --- lib/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/thread.c') diff --git a/lib/thread.c b/lib/thread.c index 651d26dfb2..2217a60f0a 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -171,7 +171,7 @@ static void cpu_record_print(struct vty *vty, uint8_t filter) struct thread_master *m; struct listnode *ln; - memset(&tmp, 0, sizeof tmp); + memset(&tmp, 0, sizeof(tmp)); tmp.funcname = "TOTAL"; tmp.types = filter; -- cgit v1.2.3