Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d153b1fc authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Use pid_t not int

Change-Id: Iad1c2fd4152e94080ad8c65c13ddf4519fc2ed27
parent f55bc564
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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++) {