summaryrefslogtreecommitdiffstats
path: root/adb/sockets.cpp
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-03-19 15:21:08 -0700
committerDan Albert <danalbert@google.com>2015-03-19 15:32:33 -0700
commit3313426fad9eaaf53017cdbde889ebcec91358ec (patch)
tree8c0636dfdd70e8ad772b9dde386f0335c8e4ec83 /adb/sockets.cpp
parentb4ebc475e678e1dce5e4c78436a0b2fc4813159d (diff)
downloadsystem_core-3313426fad9eaaf53017cdbde889ebcec91358ec.zip
system_core-3313426fad9eaaf53017cdbde889ebcec91358ec.tar.gz
system_core-3313426fad9eaaf53017cdbde889ebcec91358ec.tar.bz2
File header cleanup.
* sysdeps.h should always be included first. * TRACE_TAG needs to be defined before anything is included. * Some files were missing copyright headers. * Save precious bytes on my SSD by removing useless whitespace. Change-Id: I88980e6e00b5be1093806cf286740d9e4a033b94
Diffstat (limited to 'adb/sockets.cpp')
-rw-r--r--adb/sockets.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/adb/sockets.cpp b/adb/sockets.cpp
index 12bc8d8..48d02d6 100644
--- a/adb/sockets.cpp
+++ b/adb/sockets.cpp
@@ -14,6 +14,10 @@
* limitations under the License.
*/
+#define TRACE_TAG TRACE_SOCKETS
+
+#include "sysdeps.h"
+
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
@@ -21,14 +25,12 @@
#include <string.h>
#include <unistd.h>
-#include "sysdeps.h"
-
-#define TRACE_TAG TRACE_SOCKETS
-#include "adb.h"
-#include "adb_io.h"
#if !ADB_HOST
#include "cutils/properties.h"
#endif
+
+#include "adb.h"
+#include "adb_io.h"
#include "transport.h"
ADB_MUTEX_DEFINE( socket_list_lock );