basic: use -EINVAL for _MANAGED_OOM_PREFERENCE_INVALID

Follow-up of #11484
This commit is contained in:
Benjamin Robin
2021-02-16 23:33:01 +01:00
parent a9a43d8aa2
commit 925484aacb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -297,7 +297,7 @@ typedef enum ManagedOOMPreference {
MANAGED_OOM_PREFERENCE_AVOID = 1,
MANAGED_OOM_PREFERENCE_OMIT = 2,
_MANAGED_OOM_PREFERENCE_MAX,
_MANAGED_OOM_PREFERENCE_INVALID = -1
_MANAGED_OOM_PREFERENCE_INVALID = -EINVAL,
} ManagedOOMPreference;
const char* managed_oom_preference_to_string(ManagedOOMPreference a) _const_;