diff options
author | Glenn Kasten <gkasten@google.com> | 2012-02-03 11:10:26 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-02-03 16:14:15 -0800 |
commit | bb001926447d0b7dc71ca8bb3c9856f3136d8f4c (patch) | |
tree | fe9e3f0deff3396abf15bbff29f5b8a1d6f50175 /services/audioflinger | |
parent | 787bae0578fbaab6219ebf23494866b224d01438 (diff) | |
download | frameworks_av-bb001926447d0b7dc71ca8bb3c9856f3136d8f4c.zip frameworks_av-bb001926447d0b7dc71ca8bb3c9856f3136d8f4c.tar.gz frameworks_av-bb001926447d0b7dc71ca8bb3c9856f3136d8f4c.tar.bz2 |
Use pid_t not int
Change-Id: Iad1c2fd4152e94080ad8c65c13ddf4519fc2ed27
Diffstat (limited to 'services/audioflinger')
-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 f71ba0a..d73a46d 100644 --- a/services/audioflinger/AudioFlinger.cpp +++ b/services/audioflinger/AudioFlinger.cpp @@ -910,7 +910,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, @@ -5246,7 +5246,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++) { @@ -5264,7 +5264,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++) { |