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

Commit 2bd41242 authored by Bernhard Rosenkränzer's avatar Bernhard Rosenkränzer Committed by Chih-Hung Hsieh
Browse files

Fix build with clang



Remove 2 unused functions and 1 unused label in the
!ALLOW_ADBD_DISABLE_VERITY case

Change-Id: Id6b29f57bcb95e54f5a4014021d47d8ca6e4556e
Signed-off-by: default avatarBernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
parent 53432b46
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ static void write_console(int fd, const char* format, ...)
    adb_write(fd, buffer, strnlen(buffer, sizeof(buffer)));
}

#ifdef ALLOW_ADBD_DISABLE_VERITY
static int get_target_device_size(int fd, const char *blk_device,
                                  uint64_t *device_size)
{
@@ -157,6 +158,7 @@ errout:
        adb_close(device);
    return retval;
}
#endif

void set_verity_enabled_state_service(int fd, void* cookie)
{
@@ -207,11 +209,11 @@ void set_verity_enabled_state_service(int fd, void* cookie)
        write_console(fd,
                      "Now reboot your device for settings to take effect\n");
    }
errout:
#else
    write_console(fd, "%s-verity only works for userdebug builds\n",
                  enable ? "enable" : "disable");
#endif

errout:
    adb_close(fd);
}