units: make unit states global
commitc124d9316967a20f602da6a501eceb196b5ff5e2
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 10 May 2023 08:51:27 +0000 (10 11:51 +0300)
committerDan Carpenter <dan.carpenter@linaro.org>
Wed, 10 May 2023 08:51:27 +0000 (10 11:51 +0300)
tree2fdafdf2731f9f6369fc0f842e81b04f2965dbb6
parent4cafc9fe30e6286b9fa828ac3a7faf1654d32b9a
units: make unit states global

It's easier to check if (unit == &unit_byte) instead of doing an
if (unit && strcmp(unit->name, "byte") == 0) {.  So make the states
global.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
smatch.h
smatch_units.c