From 0b2b95ce7030d57b0a9f7ea08de80cb903ebcc76 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 9 Mar 2025 00:40:12 +0100 Subject: Arranged variables --- FICS/network.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'FICS/network.c') diff --git a/FICS/network.c b/FICS/network.c index 0b85b4d..393e315 100644 --- a/FICS/network.c +++ b/FICS/network.c @@ -331,12 +331,11 @@ net_send_string(int fd, char *str, int format) PUBLIC int readline2(comstr_t *cs, int who) { - int howmany, state, fd, v_pending; - unsigned char *start, *s, *d; - - static unsigned char ayt[] = "[Responding to AYT: Yes, I'm here.]\n"; - static unsigned char will_sga[] = { IAC, WILL, TELOPT_SGA, '\0' }; - static unsigned char will_tm[] = { IAC, WILL, TELOPT_TM, '\0' }; + int howmany, state, fd, v_pending; + static const uint8_t ayt[] = "[Responding to AYT: Yes, I'm here.]\n"; + static const uint8_t will_sga[] = { IAC, WILL, TELOPT_SGA, '\0' }; + static const uint8_t will_tm[] = { IAC, WILL, TELOPT_TM, '\0' }; + unsigned char *start, *s, *d; state = con[who].state; -- cgit v1.2.3