unit-def: ensure UnitType enum fits any errno value
authorLennart Poettering <lennart@poettering.net>
Mon, 10 May 2021 16:43:07 +0000 (18:43 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 11 May 2021 05:33:11 +0000 (14:33 +0900)
commitc37f7963b141eec9f37115fecb19c8ebfa89b9fb
tree04b5a04076ce97ac19f6e836f5bb7dd9f68a7da5
parent7eea910d240e58b83b28f106cebb545e898543b5
unit-def: ensure UnitType enum fits any errno value

This is a follow-up for #19514 which changed unit_name_to_instance() to
return ENOMEM as a UnitType enum, even though the enum didn't
necessarily have range for that.

Let's extend the range explicitly, so that we can cover the full errno
range in it.
src/basic/unit-def.h