summaryrefslogtreecommitdiffstats
path: root/llkd
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2018-10-05 14:29:47 -0700
committerTom Cherry <tomcherry@google.com>2018-10-05 14:30:39 -0700
commite0bc5a9aa2c670f1003ac1c4331b77c594adf3a4 (patch)
tree5d0de08240c9e0e9b5abea3167574175363724b9 /llkd
parent64990d5b457da61a150f39193dda5479cc32da20 (diff)
downloadsystem_core-e0bc5a9aa2c670f1003ac1c4331b77c594adf3a4.tar.gz
system_core-e0bc5a9aa2c670f1003ac1c4331b77c594adf3a4.tar.bz2
system_core-e0bc5a9aa2c670f1003ac1c4331b77c594adf3a4.zip
Use only signed/unsigned numbers with ParseInt/ParseUint respectively
Test: build Change-Id: I4d950d4aa8d24c90d1fc9b1cbea0f324aeed56a3
Diffstat (limited to 'llkd')
-rw-r--r--llkd/libllkd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llkd/libllkd.cpp b/llkd/libllkd.cpp
index 58c2ba8d2..6840ed09b 100644
--- a/llkd/libllkd.cpp
+++ b/llkd/libllkd.cpp
@@ -265,7 +265,7 @@ uid_t llkProcGetUid(pid_t tid) {
}
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;