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

Commit 71bbc678 authored by Christopher Tate's avatar Christopher Tate
Browse files

Fix the build in clang

"fprintf(stderr, buf)" is a warning in some compilers, and we're
building with all warnings promoted to error.

Change-Id: Ie3c6ddcd74cf4dda40cf7b742df955dde1d1a5ff
parent a5e65d86
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1994,7 +1994,7 @@ int install_multiple_app(transport_type transport, char* serial, int argc, char*
    }
    if (session_id < 0) {
        fprintf(stderr, "Failed to create session\n");
        fprintf(stderr, buf);
        fputs(buf, stderr);
        return -1;
    }

@@ -2034,7 +2034,7 @@ int install_multiple_app(transport_type transport, char* serial, int argc, char*

        if (strncmp("Success", buf, 7)) {
            fprintf(stderr, "Failed to write %s\n", file);
            fprintf(stderr, buf);
            fputs(buf, stderr);
            success = 0;
            goto finalize_session;
        }
@@ -2057,11 +2057,11 @@ finalize_session:
    adb_close(fd);

    if (!strncmp("Success", buf, 7)) {
        fprintf(stderr, buf);
        fputs(buf, stderr);
        return 0;
    } else {
        fprintf(stderr, "Failed to finalize session\n");
        fprintf(stderr, buf);
        fputs(buf, stderr);
        return -1;
    }
}