summaryrefslogtreecommitdiffstats
path: root/adb/file_sync_service.c
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-02-24 15:51:19 -0800
committerDan Albert <danalbert@google.com>2015-02-24 21:30:22 -0800
commit7664901a355b959f312e9acff5a0fd31b7139623 (patch)
tree4eae06ed28a7a20c454d9f4b59c6798a06644dad /adb/file_sync_service.c
parent5329d3fd54fa875bb7de78a8c40134cc63921c64 (diff)
downloadsystem_core-7664901a355b959f312e9acff5a0fd31b7139623.tar.gz
system_core-7664901a355b959f312e9acff5a0fd31b7139623.tar.bz2
system_core-7664901a355b959f312e9acff5a0fd31b7139623.zip
Move transport declarations into transport.h.
There are a few cloexec issues in here as an added bonus. Change-Id: I1699d719d733f47878bdba0454230cf5ab6a60b6
Diffstat (limited to 'adb/file_sync_service.c')
-rw-r--r--adb/file_sync_service.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/adb/file_sync_service.c b/adb/file_sync_service.c
index 7de82b7e8..0944e5d64 100644
--- a/adb/file_sync_service.c
+++ b/adb/file_sync_service.c
@@ -14,24 +14,24 @@
* limitations under the License.
*/
-#include <stdlib.h>
+#include <dirent.h>
+#include <errno.h>
+#include <selinux/android.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
-
#include <sys/stat.h>
#include <sys/types.h>
-#include <dirent.h>
-#include <utime.h>
#include <unistd.h>
+#include <utime.h>
-#include <errno.h>
-#include <private/android_filesystem_config.h>
-#include <selinux/android.h>
#include "sysdeps.h"
#define TRACE_TAG TRACE_SYNC
#include "adb.h"
#include "file_sync_service.h"
+#include "private/android_filesystem_config.h"
+#include "transport.h"
/* TODO: use fs_config to configure permissions on /data */
static bool is_on_system(const char *name) {