aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2025-03-09 00:40:12 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2025-03-09 00:40:12 +0100
commit0b2b95ce7030d57b0a9f7ea08de80cb903ebcc76 (patch)
tree8a2a0a8ae2b75b70d1cc5b396cd79603a4495a03
parente260ed6fad82fd5ed6d1fa1dacf668d1e1025465 (diff)
Arranged variables
-rw-r--r--FICS/network.c11
1 files changed, 5 insertions, 6 deletions
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;