diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-02-11 03:17:47 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-11 03:17:47 +0900 |
commit | fa7924db0bd836e30021c9b2c0480f0beb1a85d6 (patch) | |
tree | 140ee965dbe69032363640110dec3fe8089d379f /src/shared/condition.h | |
parent | 2de908aead1182e07851e05b9f31759fe445e4f5 (diff) | |
parent | 23ece765cc771f1fe0d4798843edb0ec24ae179c (diff) | |
download | systemd-fa7924db0bd836e30021c9b2c0480f0beb1a85d6.tar.gz |
Merge pull request #11484 from keszybz/udevadm-error-logs
Use real return codes in _from_string() functions
Diffstat (limited to 'src/shared/condition.h')
-rw-r--r-- | src/shared/condition.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/condition.h b/src/shared/condition.h index 0d9754eb85..7853490290 100644 --- a/src/shared/condition.h +++ b/src/shared/condition.h @@ -40,7 +40,7 @@ typedef enum ConditionType { CONDITION_CONTROL_GROUP_CONTROLLER, _CONDITION_TYPE_MAX, - _CONDITION_TYPE_INVALID = -1 + _CONDITION_TYPE_INVALID = -EINVAL, } ConditionType; typedef enum ConditionResult { @@ -49,7 +49,7 @@ typedef enum ConditionResult { CONDITION_FAILED, CONDITION_ERROR, _CONDITION_RESULT_MAX, - _CONDITION_RESULT_INVALID = -1 + _CONDITION_RESULT_INVALID = -EINVAL, } ConditionResult; typedef struct Condition { |