aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-13 20:36:26 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-13 20:36:26 +0100
commitb5505b00c30850fbadb677240cf452de4bdc21a0 (patch)
tree0f0488291b13d1df60c098f853aae9fd9cacea91
parentd21ec211e44eb5a79639c27d9f17188dd2a231cb (diff)
Reformatted struct
-rw-r--r--FICS/network.h46
1 files changed, 25 insertions, 21 deletions
diff --git a/FICS/network.h b/FICS/network.h
index 0f9073a..4fdd1c9 100644
--- a/FICS/network.h
+++ b/FICS/network.h
@@ -45,29 +45,33 @@
#define NETSTAT_IDENT 2
typedef struct _connection {
- int fd;
- int outFd;
- unsigned int fromHost;
- int status;
+ int fd;
+ int outFd;
+ int status;
+ unsigned int fromHost;
+
#ifdef TIMESEAL
- char user[512];
- char sys[512];
- int timeseal;
- int time;
+ char sys[512];
+ char user[512];
+ int time;
+ int timeseal;
#endif
-/* Input buffering */
- int numPending;
- int processed;
- unsigned char inBuf[MAX_STRING_LENGTH];
-/* Output buffering */
- int sndbufsize; /* size of send buffer (this changes) */
- int sndbufpos; /* position in send buffer */
- char *sndbuf; /* our send buffer, or NULL if none yet */
- int outPos; /* column count */
- int state; /* 'telnet state' */
-/* identd stuff */
- char ident[20];
- int mypal;
+
+ /* Input buffering */
+ int numPending;
+ int processed;
+ unsigned char inBuf[MAX_STRING_LENGTH];
+
+ /* Output buffering */
+ char *sndbuf; /* our send buffer, or NULL if none yet */
+ int outPos; /* column count */
+ int sndbufpos; /* position in send buffer */
+ int sndbufsize; /* size of send buffer (this changes) */
+ int state; /* 'telnet state' */
+
+ /* identd stuff */
+ char ident[20];
+ int mypal;
} connection;
extern connection con[512];