aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/network.c')
-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;