diff options
author | Dan Albert <danalbert@google.com> | 2015-02-24 15:51:19 -0800 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-02-24 21:30:22 -0800 |
commit | 7664901a355b959f312e9acff5a0fd31b7139623 (patch) | |
tree | 4eae06ed28a7a20c454d9f4b59c6798a06644dad /adb/transport_local.c | |
parent | 5329d3fd54fa875bb7de78a8c40134cc63921c64 (diff) | |
download | system_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_local.c')
-rw-r--r-- | adb/transport_local.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/adb/transport_local.c b/adb/transport_local.c index 6c4e220..e07f2f7 100644 --- a/adb/transport_local.c +++ b/adb/transport_local.c @@ -14,19 +14,20 @@ * limitations under the License. */ +#include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <errno.h> +#include <sys/types.h> #include "sysdeps.h" -#include <sys/types.h> -#if !ADB_HOST -#include <cutils/properties.h> -#endif #define TRACE_TAG TRACE_TRANSPORT #include "adb.h" +#if !ADB_HOST +#include "cutils/properties.h" +#endif +#include "transport.h" #if ADB_HOST /* we keep a list of opened transports. The atransport struct knows to which |