Commit effca3ef authored by deuce's avatar deuce

Linting

parent f9bd5708
This diff is collapsed.
......@@ -73,7 +73,7 @@
#endif
#if defined(PRAGMA_PACK)
#pragma pack(push) /* Disk image structures must be packed */
#pragma pack(push,1) /* Disk image structures must be packed */
#pragma pack(1)
#endif
......
......@@ -106,7 +106,7 @@ enum { /* Node Action */
};
#if defined(_WIN32) || defined(__BORLANDC__) /* necessary for compatibility with SBBS v2 */
#pragma pack(push)
#pragma pack(push,1)
#pragma pack(1)
#endif
......
......@@ -119,4 +119,4 @@ void RINGBUFCALL RingBufReInit( RingBuf* rb );
}
#endif
#endif // Don't add anything afterthis endif
#endif /* Don't add anything afterthis endif */
......@@ -48,16 +48,16 @@
typedef struct {
DWORD size; // sizeof(bbs_struct_t)
DWORD size; /* sizeof(bbs_struct_t) */
WORD first_node;
WORD last_node;
WORD telnet_port;
WORD rlogin_port;
WORD outbuf_highwater_mark; // output block size control
WORD outbuf_highwater_mark; /* output block size control */
WORD outbuf_drain_timeout;
WORD sem_chk_freq; /* semaphore file checking frequency (in seconds) */
DWORD telnet_interface;
DWORD options; // See BBS_OPT definitions
DWORD options; /* See BBS_OPT definitions */
DWORD rlogin_interface;
DWORD xtrn_polls_before_yield;
DWORD js_max_bytes;
......@@ -81,7 +81,7 @@ typedef struct {
void (*thread_up)(void*, BOOL up, BOOL setuid);
void (*socket_open)(void*, BOOL open);
void (*client_on)(void*, BOOL on, int sock, client_t*, BOOL update);
BOOL (*seteuid)(BOOL user); // Set Unix uid for thread (bind)
BOOL (*seteuid)(BOOL user); /* Set Unix uid for thread (bind) */
BOOL (*setuid)(BOOL force);
/* Paths */
......
......@@ -40,24 +40,24 @@
/* commands */
#define TELNET_IAC 255 // Interpret as command
#define TELNET_DONT 254 // Don't do option
#define TELNET_DO 253 // Do option
#define TELNET_WONT 252 // Won't do option
#define TELNET_WILL 251 // Will do option
#define TELNET_SB 250 // sub-negotiation
#define TELNET_GA 249 // Go ahead
#define TELNET_EL 248 // Erase line
#define TELNET_EC 247 // Erase char
#define TELNET_AYT 246 // Are you there?
#define TELNET_AO 245 // Abort output
#define TELNET_IP 244 // Interrupt process
#define TELNET_BRK 243 // Break
#define TELNET_SYNC 242 // Data mark
#define TELNET_NOP 241 // No operation
#define TELNET_SE 240 // End of subnegotiation parameters.
#define TELNET_IAC 255 /* Interpret as command */
#define TELNET_DONT 254 /* Don't do option */
#define TELNET_DO 253 /* Do option */
#define TELNET_WONT 252 /* Won't do option */
#define TELNET_WILL 251 /* Will do option */
#define TELNET_SB 250 /* sub-negotiation */
#define TELNET_GA 249 /* Go ahead */
#define TELNET_EL 248 /* Erase line */
#define TELNET_EC 247 /* Erase char */
#define TELNET_AYT 246 /* Are you there? */
#define TELNET_AO 245 /* Abort output */
#define TELNET_IP 244 /* Interrupt process */
#define TELNET_BRK 243 /* Break */
#define TELNET_SYNC 242 /* Data mark */
#define TELNET_NOP 241 /* No operation */
#define TELNET_SE 240 /* End of subnegotiation parameters. */
/* options */
......@@ -65,7 +65,7 @@ enum {
TELNET_BINARY
,TELNET_ECHO
,TELNET_RECONN
,TELNET_SUP_GA // suppress go ahead
,TELNET_SUP_GA /* suppress go ahead */
,TELNET_APPROX_MSG_SIZE
,TELNET_STATUS
,TELNET_TIMING_MARK
......@@ -104,7 +104,7 @@ enum {
,TELNET_NEW_ENV_OPTION
,TELNET_3270E
,TELNET_EXOPL=255 // Extended options list
,TELNET_EXOPL=255 /* Extended options list */
};
/* Terminal-type sub option codes, see RFC 1091 */
......@@ -116,8 +116,8 @@ enum {
#define TELNET_MODE_BIN_RX (1<<0)
#define TELNET_MODE_ECHO (1<<1)
#define TELNET_MODE_GATE (1<<2) // Pass-through telnet commands/responses
#define TELNET_MODE_OFF (1<<3) // This is not a Telnet connection
#define TELNET_MODE_GATE (1<<2) /* Pass-through telnet commands/responses */
#define TELNET_MODE_OFF (1<<3) /* This is not a Telnet connection */
#ifdef DLLEXPORT
#undef DLLEXPORT
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment