commit | e0bc5a9aa2c670f1003ac1c4331b77c594adf3a4 | [log] [tgz] |
---|---|---|
author | Tom Cherry <tomcherry@google.com> | Fri Oct 05 14:29:47 2018 -0700 |
committer | Tom Cherry <tomcherry@google.com> | Fri Oct 05 14:30:39 2018 -0700 |
tree | 5d0de08240c9e0e9b5abea3167574175363724b9 | |
parent | 64990d5b457da61a150f39193dda5479cc32da20 [diff] [blame] |
Use only signed/unsigned numbers with ParseInt/ParseUint respectively Test: build Change-Id: I4d950d4aa8d24c90d1fc9b1cbea0f324aeed56a3
diff --git a/llkd/libllkd.cpp b/llkd/libllkd.cpp index 58c2ba8..6840ed0 100644 --- a/llkd/libllkd.cpp +++ b/llkd/libllkd.cpp
@@ -265,7 +265,7 @@ } content.erase(pos); uid_t ret; - if (!android::base::ParseInt(content, &ret, uid_t(0))) { + if (!android::base::ParseUint(content, &ret, uid_t(0))) { return -1; } return ret;