Changed ulong type to uint32_t

This commit is contained in:
Ianos Gnatiuc
2005-10-20 21:41:32 +00:00
parent 44c26c3b0a
commit c5734978fa
42 changed files with 298 additions and 302 deletions

View File

@@ -56,9 +56,6 @@ The combined boards are stored in 25 bytes (200 bits). One bit per message
area.
*/
//typedef unsigned short uint;
//typedef unsigned long ulong;
//typedef unsigned char byte;
typedef unsigned long accessflags;
typedef unsigned char combinedboards[125];
typedef unsigned char pb_bool;
@@ -104,9 +101,9 @@ struct UsersPbBBS
uint expLevel;
accessflags expFlagsOn;
accessflags expFlagsOff;
ulong uFlags;
uint32_t uFlags;
combinedboards mailCheckBoards;
ulong totalTimeUsed;
uint32_t totalTimeUsed;
uint qwkMaxMsgsPerArea;
uint qwkMaxMsgs;
byte qwkArchiver;
@@ -452,8 +449,8 @@ struct MODEM_PRO
struct BinLog
{
Date date;
pb_Time timeIn;
pb_Time timeOut;
pb_Time timeIn;
pb_Time timeOut;
char name[36];
char city[26];
char country[26];
@@ -463,7 +460,7 @@ struct BinLog
long kbUp;
uint yells;
uint level;
ulong uflags;
uint32_t uflags;
char extra[81];
};

View File

@@ -105,13 +105,13 @@ typedef struct { // Message sub board info
read_ar[LEN_ARSTR+1], // Read requirements
post_ar[LEN_ARSTR+1], // Post requirements
op_ar[LEN_ARSTR+1]; // Operator requirements
ulong misc; // Miscellaneous flags
uint32_t misc; // Miscellaneous flags
char tagline[81], // Optional QWK net tag line
origline[51], // Optional EchoMail origin line
echomail_sem[LEN_DIR+1], // EchoMail semaphore for this sub
echopath[LEN_DIR+1]; // EchoMail path
ftn_addr faddr; // FidoNet address
ulong maxmsgs, // Max number of messages allowed
uint32_t maxmsgs, // Max number of messages allowed
maxcrcs; // Max number of CRCs to keep
ushort maxage, // Max age of messages (in days)
ptridx; // Index into pointer file

View File

@@ -56,7 +56,7 @@ void gareafile::ReadFastecho11x(int fh) {
aka[c].main = cfg->oldakas[c].main;
// Process extended headers
ulong offset = 0;
uint32_t offset = 0;
while(offset < cfg->offset) {
ExtensionHeader ehdr;
read(fh, &ehdr, sizeof(ExtensionHeader));

View File

@@ -56,7 +56,7 @@ void gareafile::ReadFastecho141(int fh) {
aka[c].main = cfg->oldakas[c].main;
// Process extended headers
ulong offset = 0;
uint32_t offset = 0;
while(offset < cfg->offset) {
ExtensionHeader ehdr;
read(fh, &ehdr, sizeof(ExtensionHeader));

View File

@@ -54,7 +54,7 @@ void gareafile::ReadFastecho142(int fh) {
OriginLines* origin = (OriginLines*)throw_calloc(cfg->OriginCnt, sizeof(OriginLines));
// Process extended headers
ulong offset = 0;
uint32_t offset = 0;
while(offset < cfg->offset) {
ExtensionHeader ehdr;
read(fh, &ehdr, sizeof(ExtensionHeader));

View File

@@ -48,7 +48,7 @@ void gareafile::ReadAdeptXbbsFile(char* path, char* file, char* options) {
const word CRC_USENET = 0xD087;
AreaCfg aa;
ulong flags;
uint32_t flags;
char buf[512];
char name[256];
char usenet[256];