summaryrefslogtreecommitdiff
path: root/jdwpspy/Net.cpp
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2012-03-09 18:06:03 -0800
committer Elliott Hughes <enh@google.com> 2012-03-09 18:06:03 -0800
commit719ace4734f519c67fd2c1ff7a232c079309a615 (patch)
treeccce9abb445238e4a00c9d4bfba093fb16bc8c7c /jdwpspy/Net.cpp
parentb3cd1229e6904365ca0ca2a7bbc4701ad1908154 (diff)
Stop saying "typedef struct" and "typedef enum".
Seeing new instances of this C-ism go in makes me a sad panda. Change-Id: Ie3dd414b8b5e57a4164e88eb2d8559545569628d
Diffstat (limited to 'jdwpspy/Net.cpp')
-rw-r--r--jdwpspy/Net.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/jdwpspy/Net.cpp b/jdwpspy/Net.cpp
index 209cf281c9..abcae2144a 100644
--- a/jdwpspy/Net.cpp
+++ b/jdwpspy/Net.cpp
@@ -33,7 +33,7 @@
/*
* Information about the remote end.
*/
-typedef struct Peer {
+struct Peer {
char label[2]; /* 'D' or 'V' */
int sock;
@@ -41,13 +41,13 @@ typedef struct Peer {
int inputCount;
bool awaitingHandshake; /* waiting for "JDWP-Handshake" */
-} Peer;
+};
/*
* Network state.
*/
-typedef struct NetState {
+struct NetState {
/* listen here for connection from debugger */
int listenSock;
@@ -57,16 +57,16 @@ typedef struct NetState {
Peer dbg;
Peer vm;
-} NetState;
+};
/*
* Function names.
*/
-typedef struct {
+struct JdwpHandlerMap {
u1 cmdSet;
u1 cmd;
const char* descr;
-} JdwpHandlerMap;
+};
/*
* Map commands to names.