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

Commit d1a8fe69 authored by Dan Austin's avatar Dan Austin
Browse files

Address const/non-const issues in preparation for libcxx rebase

Change-Id: I7ab9f65b41cbd2a8272810427529f46c6fbf2a0d
(cherry picked from commit 09a7987f)
parent b6b2f6ad
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -533,11 +533,11 @@ static void clearAppProperties()


// Set the system property that indicates which apps should perform
// Set the system property that indicates which apps should perform
// application-level tracing.
// application-level tracing.
static bool setAppCmdlineProperty(const char* cmdline)
static bool setAppCmdlineProperty(char* cmdline)
{
{
    char buf[PROPERTY_KEY_MAX];
    char buf[PROPERTY_KEY_MAX];
    int i = 0;
    int i = 0;
    const char* start = cmdline;
    char* start = cmdline;
    while (start != NULL) {
    while (start != NULL) {
        if (i == MAX_PACKAGES) {
        if (i == MAX_PACKAGES) {
            fprintf(stderr, "error: only 16 packages could be traced at once\n");
            fprintf(stderr, "error: only 16 packages could be traced at once\n");
@@ -743,7 +743,7 @@ static bool setUpTrace()
        }
        }
        packageList += value;
        packageList += value;
    }
    }
    ok &= setAppCmdlineProperty(packageList.data());
    ok &= setAppCmdlineProperty(&packageList[0]);
    ok &= pokeBinderServices();
    ok &= pokeBinderServices();


    // Disable all the sysfs enables.  This is done as a separate loop from
    // Disable all the sysfs enables.  This is done as a separate loop from