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

Commit 62de3db2 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Use const char correctly in AudioFlinger

Use const char [] instead of const char * to eliminate unnecessary pointer.
Make the array audio_interfaces also const, in addition to the strings.

Change-Id: I31f33d1dcb9a657ee136f4280fd2d46492496831
parent e61fd281
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -63,8 +63,8 @@

namespace android {

static const char* kDeadlockedString = "AudioFlinger may be deadlocked\n";
static const char* kHardwareLockedString = "Hardware lock is taken\n";
static const char kDeadlockedString[] = "AudioFlinger may be deadlocked\n";
static const char kHardwareLockedString[] = "Hardware lock is taken\n";

//static const nsecs_t kStandbyTimeInNsecs = seconds(3);
static const float MAX_GAIN = 4096.0f;
@@ -147,7 +147,7 @@ out:
    return rc;
}

static const char *audio_interfaces[] = {
static const char * const audio_interfaces[] = {
    "primary",
    "a2dp",
    "usb",