commit | f1b1e4914c4d970589a2fb726def7fb82aca509c | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Mon May 06 15:05:13 2019 -0700 |
committer | Steven Moreland <smoreland@google.com> | Thu Sep 05 18:09:35 2019 -0700 |
tree | d4753dd577695705a2fbb64ae67e2051bb8c8d1b | |
parent | b653dd0a088f3be9d0fccd3d2099b3f8ab63ca2c [diff] |
binder: readCallingWorkSourceUid make const Bug: N/A Test: N/A Change-Id: I09ec79695efc05ca88884f7c43a6a7ca7353dfda Merged-In: I09ec79695efc05ca88884f7c43a6a7ca7353dfda
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp index 8751ecb..ed6c834 100644 --- a/libs/binder/Parcel.cpp +++ b/libs/binder/Parcel.cpp
@@ -541,7 +541,7 @@ return err == NO_ERROR; } -uid_t Parcel::readCallingWorkSourceUid() +uid_t Parcel::readCallingWorkSourceUid() const { if (!mRequestHeaderPresent) { return IPCThreadState::kUnsetWorkSource;
diff --git a/libs/binder/include/binder/Parcel.h b/libs/binder/include/binder/Parcel.h index 50ca983..f5aafc7 100644 --- a/libs/binder/include/binder/Parcel.h +++ b/libs/binder/include/binder/Parcel.h
@@ -381,7 +381,7 @@ bool replaceCallingWorkSourceUid(uid_t uid); // Returns the work source provided by the caller. This can only be trusted for trusted calling // uid. - uid_t readCallingWorkSourceUid(); + uid_t readCallingWorkSourceUid() const; void readRequestHeaders() const; private: