diff options
author | Patrick Rohr <prohr@google.com> | 2022-01-25 21:36:50 +0100 |
---|---|---|
committer | Patrick Rohr <prohr@google.com> | 2022-01-25 23:02:00 +0100 |
commit | e2f1b5a25d3e079ef4d07a64925f5a8fc253c59d (patch) | |
tree | d41baa1df8904f69120b796bc0c6e65ab29722cd /server/UnreachableNetwork.cpp | |
parent | 0b84bde09aae4d8c378e6821a724d18839945976 (diff) | |
download | netd-e2f1b5a25d3e079ef4d07a64925f5a8fc253c59d.tar.gz |
rename subpriority constants to make more readable
Rename DEFAULT_SUB_PRIORITY to SUB_PRIORITY_HIGHEST and
LOWEST_SUB_PRIORITY to SUB_PRIORITY_LOWEST.
Test: builds
Change-Id: Ic62ad37d8bb2fafa488589e2e25f8c890c5dd649
Diffstat (limited to 'server/UnreachableNetwork.cpp')
-rw-r--r-- | server/UnreachableNetwork.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/UnreachableNetwork.cpp b/server/UnreachableNetwork.cpp index 59f9ceb4..68802251 100644 --- a/server/UnreachableNetwork.cpp +++ b/server/UnreachableNetwork.cpp @@ -54,8 +54,8 @@ int UnreachableNetwork::removeUsers(const UidRanges& uidRanges, int32_t subPrior } bool UnreachableNetwork::isValidSubPriority(int32_t priority) { - return priority >= UidRanges::DEFAULT_SUB_PRIORITY && - priority <= UidRanges::LOWEST_SUB_PRIORITY; + return priority >= UidRanges::SUB_PRIORITY_HIGHEST && + priority <= UidRanges::SUB_PRIORITY_LOWEST; } } // namespace net |