- Consequently use "unsigned int", not "unsigned"
- Indent
- Sort headers
This commit is contained in:
Kim Woelders
2018-06-28 11:58:28 +02:00
parent ac76071e0e
commit 8956f3f851
2 changed files with 25 additions and 25 deletions
+3 -3
View File
@@ -22,7 +22,7 @@ typedef struct {
unsigned int bytes_rx; /* Rx byte count */
unsigned char mode_telnet; /* Telnet mode */
unsigned char mode_rfc2217; /* RFC-2217 mode */
unsigned char telnet_ack[256]; /* telnet option ack counter */
unsigned char telnet_ack[256]; /* telnet option ack counter */
} tn_ctx_t;
extern tn_ctx_t *telnet_ctx_init(void *cctx, srv_tx_f * ftx, srv_rx_f * frx,
@@ -30,11 +30,11 @@ extern tn_ctx_t *telnet_ctx_init(void *cctx, srv_tx_f * ftx, srv_rx_f * frx,
extern int telnet_open(tn_ctx_t * tcc);
extern int telnet_rx(tn_ctx_t * tcc, char *buf, size_t *plen);
extern int telnet_rx(tn_ctx_t * tcc, char *buf, size_t * plen);
extern int telnet_tx(tn_ctx_t * tcc, const char *buf, int len);
extern void telnet_set_opt(tn_ctx_t * tcc, int opt, int prm,
const void *val, int len);
const void *val, int len);
extern void telnet_rfc2217_handle_opt(tn_ctx_t * tcc, int opt,
unsigned char *pu, int nd);