Merge "Minor minadbd cleanup."
This commit is contained in:
@@ -13,7 +13,7 @@ include $(CLEAR_VARS)
|
|||||||
LOCAL_SRC_FILES := \
|
LOCAL_SRC_FILES := \
|
||||||
adb_main.cpp \
|
adb_main.cpp \
|
||||||
fuse_adb_provider.cpp \
|
fuse_adb_provider.cpp \
|
||||||
services.cpp \
|
minadbd_services.cpp \
|
||||||
|
|
||||||
LOCAL_CLANG := true
|
LOCAL_CLANG := true
|
||||||
LOCAL_MODULE := libminadbd
|
LOCAL_MODULE := libminadbd
|
||||||
|
|||||||
@@ -19,8 +19,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "sysdeps.h"
|
|
||||||
|
|
||||||
#include "adb.h"
|
#include "adb.h"
|
||||||
#include "adb_auth.h"
|
#include "adb_auth.h"
|
||||||
#include "transport.h"
|
#include "transport.h"
|
||||||
|
|||||||
@@ -19,8 +19,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "sysdeps.h"
|
|
||||||
|
|
||||||
#include "adb.h"
|
#include "adb.h"
|
||||||
#include "adb_io.h"
|
#include "adb_io.h"
|
||||||
#include "fuse_adb_provider.h"
|
#include "fuse_adb_provider.h"
|
||||||
|
|||||||
@@ -21,11 +21,10 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "sysdeps.h"
|
|
||||||
|
|
||||||
#include "adb.h"
|
#include "adb.h"
|
||||||
#include "fdevent.h"
|
#include "fdevent.h"
|
||||||
#include "fuse_adb_provider.h"
|
#include "fuse_adb_provider.h"
|
||||||
|
#include "sysdeps.h"
|
||||||
|
|
||||||
typedef struct stinfo stinfo;
|
typedef struct stinfo stinfo;
|
||||||
|
|
||||||
@@ -62,7 +61,7 @@ static void sideload_host_service(int sfd, void* data) {
|
|||||||
|
|
||||||
static int create_service_thread(void (*func)(int, void *), void *cookie) {
|
static int create_service_thread(void (*func)(int, void *), void *cookie) {
|
||||||
int s[2];
|
int s[2];
|
||||||
if(adb_socketpair(s)) {
|
if (adb_socketpair(s)) {
|
||||||
printf("cannot create service socket pair\n");
|
printf("cannot create service socket pair\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user