diff options
author | Dan Albert <danalbert@google.com> | 2015-02-19 21:26:14 +0100 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-02-19 21:26:14 +0100 |
commit | 5748a029de5958b7451699857a066dc4367062b1 (patch) | |
tree | 94bf9167f34d1de76c0e223d2ab0e8de5ff79dfc | |
parent | am 43162fe5: am 076f5479: Merge "Use headers from adb." (diff) | |
parent | am 5d22a5b5: Merge "Remove dead code." (diff) | |
download | android_bootable_recovery-5748a029de5958b7451699857a066dc4367062b1.tar android_bootable_recovery-5748a029de5958b7451699857a066dc4367062b1.tar.gz android_bootable_recovery-5748a029de5958b7451699857a066dc4367062b1.tar.bz2 android_bootable_recovery-5748a029de5958b7451699857a066dc4367062b1.tar.lz android_bootable_recovery-5748a029de5958b7451699857a066dc4367062b1.tar.xz android_bootable_recovery-5748a029de5958b7451699857a066dc4367062b1.tar.zst android_bootable_recovery-5748a029de5958b7451699857a066dc4367062b1.zip |
-rw-r--r-- | minadbd/services.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/minadbd/services.c b/minadbd/services.c index 2a52eebae..357c222b4 100644 --- a/minadbd/services.c +++ b/minadbd/services.c @@ -61,40 +61,6 @@ static void sideload_host_service(int sfd, void* cookie) exit(result == 0 ? 0 : 1); } -#if 0 -static void echo_service(int fd, void *cookie) -{ - char buf[4096]; - int r; - char *p; - int c; - - for(;;) { - r = read(fd, buf, 4096); - if(r == 0) goto done; - if(r < 0) { - if(errno == EINTR) continue; - else goto done; - } - - c = r; - p = buf; - while(c > 0) { - r = write(fd, p, c); - if(r > 0) { - c -= r; - p += r; - continue; - } - if((r < 0) && (errno == EINTR)) continue; - goto done; - } - } -done: - close(fd); -} -#endif - static int create_service_thread(void (*func)(int, void *), void *cookie) { stinfo *sti; @@ -135,10 +101,6 @@ int service_to_fd(const char *name) exit(3); } else if (!strncmp(name, "sideload-host:", 14)) { ret = create_service_thread(sideload_host_service, (void*)(name + 14)); -#if 0 - } else if(!strncmp(name, "echo:", 5)){ - ret = create_service_thread(echo_service, 0); -#endif } if (ret >= 0) { close_on_exec(ret); |