summaryrefslogtreecommitdiffstats
path: root/adb/transport.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/transport.c
parent5329d3fd54fa875bb7de78a8c40134cc63921c64 (diff)
downloadsystem_core-7664901a355b959f312e9acff5a0fd31b7139623.zip
system_core-7664901a355b959f312e9acff5a0fd31b7139623.tar.gz
system_core-7664901a355b959f312e9acff5a0fd31b7139623.tar.bz2
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/transport.c')
-rw-r--r--adb/transport.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/adb/transport.c b/adb/transport.c
index ffe59da..4904cd0 100644
--- a/adb/transport.c
+++ b/adb/transport.c
@@ -14,13 +14,15 @@
* limitations under the License.
*/
+#include "sysdeps.h"
+
+#include "transport.h"
+
+#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
-#include <unistd.h>
#include <string.h>
-#include <errno.h>
-
-#include "sysdeps.h"
+#include <unistd.h>
#define TRACE_TAG TRACE_TRANSPORT
#include "adb.h"
@@ -494,8 +496,7 @@ create_device_tracker(void)
/* call this function each time the transport list has changed */
-void update_transports(void)
-{
+void update_transports(void) {
char buffer[1024];
int len;
device_tracker* tracker;