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

Commit edda73d0 authored by Doug Zongker's avatar Doug Zongker Committed by Kenny Root
Browse files

fix windows build

(cherry-picked from commit 4b39c6ac)

Change-Id: Ia7b236f1a915630fe85d488072efb9784ba10dad
parent d372c5c3
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -551,7 +551,7 @@ int adb_sideload_host(const char* fn) {
    opt = setsockopt(fd, SOL_SOCKET, SO_SNDBUF, (const void *) &opt, sizeof(opt));
    opt = setsockopt(fd, SOL_SOCKET, SO_SNDBUF, (const void *) &opt, sizeof(opt));


    int last_percent = -1;
    int last_percent = -1;
    while (true) {
    for (;;) {
        if (readx(fd, buf, 8)) {
        if (readx(fd, buf, 8)) {
            fprintf(stderr, "* failed to read command: %s\n", adb_error());
            fprintf(stderr, "* failed to read command: %s\n", adb_error());
            status = -1;
            status = -1;