From e0bc5a9aa2c670f1003ac1c4331b77c594adf3a4 Mon Sep 17 00:00:00 2001 From: Tom Cherry Date: Fri, 5 Oct 2018 14:29:47 -0700 Subject: [PATCH] Use only signed/unsigned numbers with ParseInt/ParseUint respectively Test: build Change-Id: I4d950d4aa8d24c90d1fc9b1cbea0f324aeed56a3 --- llkd/libllkd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;