diff options
-rw-r--r-- | include/binder/IPCThreadState.h | 4 | ||||
-rw-r--r-- | libs/binder/IPCThreadState.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/binder/IPCThreadState.h b/include/binder/IPCThreadState.h index ad0daee74e..5bc123e3c7 100644 --- a/include/binder/IPCThreadState.h +++ b/include/binder/IPCThreadState.h @@ -39,8 +39,8 @@ public: status_t clearLastError(); - int getCallingPid(); - int getCallingUid(); + int getCallingPid() const; + int getCallingUid() const; void setStrictModePolicy(int32_t policy); int32_t getStrictModePolicy() const; diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp index 5a38b9559a..5951a3ff47 100644 --- a/libs/binder/IPCThreadState.cpp +++ b/libs/binder/IPCThreadState.cpp @@ -362,12 +362,12 @@ status_t IPCThreadState::clearLastError() return err; } -int IPCThreadState::getCallingPid() +int IPCThreadState::getCallingPid() const { return mCallingPid; } -int IPCThreadState::getCallingUid() +int IPCThreadState::getCallingUid() const { return mCallingUid; } |