diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2012-01-30 12:05:19 +0000 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2012-02-06 10:47:01 +0000 |
commit | b48d1f66378fac886d5bc32d7302da48c89d8a75 (patch) | |
tree | 3782742756407e392a230e26c0af8699c94767ec /src/server/telnet_server.h | |
parent | 91e054a9eaefcfdb2b4e1afa99494f31481bc777 (diff) | |
download | riscv-openocd-b48d1f66378fac886d5bc32d7302da48c89d8a75.zip riscv-openocd-b48d1f66378fac886d5bc32d7302da48c89d8a75.tar.gz riscv-openocd-b48d1f66378fac886d5bc32d7302da48c89d8a75.tar.bz2 |
build: cleanup src/server directory
Change-Id: I6410df28c5999f5cbee2d3bcaa02469a29ea4c15
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/412
Tested-by: jenkins
Diffstat (limited to 'src/server/telnet_server.h')
-rw-r--r-- | src/server/telnet_server.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/server/telnet_server.h b/src/server/telnet_server.h index b0c5ceb..8a03366 100644 --- a/src/server/telnet_server.h +++ b/src/server/telnet_server.h @@ -23,6 +23,7 @@ * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ + #ifndef TELNET_SERVER_H #define TELNET_SERVER_H @@ -34,8 +35,7 @@ #define TELNET_LINE_HISTORY_SIZE (128) #define TELNET_LINE_MAX_SIZE (256) -enum telnet_states -{ +enum telnet_states { TELNET_STATE_DATA, TELNET_STATE_IAC, TELNET_STATE_SB, @@ -47,8 +47,7 @@ enum telnet_states TELNET_STATE_ESCAPE, }; -struct telnet_connection -{ +struct telnet_connection { char *prompt; enum telnet_states state; char line[TELNET_LINE_MAX_SIZE]; @@ -63,12 +62,11 @@ struct telnet_connection int closed; }; -struct telnet_service -{ +struct telnet_service { char *banner; }; int telnet_init(char *banner); int telnet_register_commands(struct command_context *command_context); -#endif /* TELNET_SERVER_H */ +#endif /* TELNET_SERVER_H */ |