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

Commit 9d100f10 authored by Josh Gao's avatar Josh Gao
Browse files

adb: move AdbCloser to its rightful place.

Test: mma
Change-Id: Ie74c49e8abf72f594a35d04b2b0d99b96f58f8d0
parent ce841d91
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -21,6 +21,10 @@

#include "sysdeps.h"

void AdbCloser::Close(int fd) {
    adb_close(fd);
}

#if !defined(_WIN32)
bool Pipe(unique_fd* read, unique_fd* write, int flags) {
    int pipefd[2];
+0 −4
Original line number Diff line number Diff line
@@ -274,10 +274,6 @@ std::string adb_get_android_dir_path() {
    return android_dir;
}

void AdbCloser::Close(int fd) {
    adb_close(fd);
}

int syntax_error(const char* fmt, ...) {
    fprintf(stderr, "adb: usage: ");