jcs
/subtext
/amendments
/378
serial: Internal obuf/ibuf aren't used
jcs made amendment 378 about 1 year ago
--- serial.c Thu Feb 23 07:28:28 2023
+++ serial.c Thu Feb 23 10:46:30 2023
@@ -73,10 +73,6 @@ enum {
struct serial_node {
short state;
- unsigned short obuflen;
- unsigned char obuf[512];
- unsigned char ibuf[64];
- unsigned short ibuflen;
unsigned long answered_at;
unsigned long write_timeout_since;
struct session *session;
@@ -224,8 +220,6 @@ serial_init(void)
serial_flush();
the_serial_node.state = SERIAL_STATE_IDLE;
- the_serial_node.obuflen = 0;
- the_serial_node.ibuflen = 0;
the_serial_node.answered_at = 0;
serial_input_buf_len = 0;