diff options
author | Glenn Kasten <gkasten@google.com> | 2012-02-08 08:40:28 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-02-08 08:40:28 -0800 |
commit | 0a20fa9c41c96e31fa20e071074a4b6e7f6c41c3 (patch) | |
tree | 128bf63eaea4d94fbf42d6954cd92046f90bf98e | |
parent | b61ec89bb0c701b3bd06eb658f854230681f8b39 (diff) | |
parent | bb001926447d0b7dc71ca8bb3c9856f3136d8f4c (diff) | |
download | frameworks_av-0a20fa9c41c96e31fa20e071074a4b6e7f6c41c3.zip frameworks_av-0a20fa9c41c96e31fa20e071074a4b6e7f6c41c3.tar.gz frameworks_av-0a20fa9c41c96e31fa20e071074a4b6e7f6c41c3.tar.bz2 |
Merge "Use pid_t not int"
-rw-r--r-- | services/audioflinger/AudioFlinger.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp index 64dd05f..3cd094b 100644 --- a/services/audioflinger/AudioFlinger.cpp +++ b/services/audioflinger/AudioFlinger.cpp @@ -909,7 +909,7 @@ void AudioFlinger::registerClient(const sp<IAudioFlingerClient>& client) Mutex::Autolock _l(mLock); - int pid = IPCThreadState::self()->getCallingPid(); + pid_t pid = IPCThreadState::self()->getCallingPid(); if (mNotificationClients.indexOfKey(pid) < 0) { sp<NotificationClient> notificationClient = new NotificationClient(this, client, @@ -5203,7 +5203,7 @@ int AudioFlinger::newAudioSessionId() void AudioFlinger::acquireAudioSessionId(int audioSession) { Mutex::Autolock _l(mLock); - int caller = IPCThreadState::self()->getCallingPid(); + pid_t caller = IPCThreadState::self()->getCallingPid(); ALOGV("acquiring %d from %d", audioSession, caller); int num = mAudioSessionRefs.size(); for (int i = 0; i< num; i++) { @@ -5221,7 +5221,7 @@ void AudioFlinger::acquireAudioSessionId(int audioSession) void AudioFlinger::releaseAudioSessionId(int audioSession) { Mutex::Autolock _l(mLock); - int caller = IPCThreadState::self()->getCallingPid(); + pid_t caller = IPCThreadState::self()->getCallingPid(); ALOGV("releasing %d from %d", audioSession, caller); int num = mAudioSessionRefs.size(); for (int i = 0; i< num; i++) { |