Changed part of unsigned long type to uint32_t

This commit is contained in:
Ianos Gnatiuc
2005-10-21 02:31:39 +00:00
parent aaf04488fd
commit 6a9a1b0834
13 changed files with 130 additions and 202 deletions

View File

@@ -134,8 +134,8 @@ typedef struct {
char versionMajor;
char versionMinor;
long creationDate;
unsigned long key;
unsigned long reservedKey;
uint32_t key;
uint32_t reservedKey;
char sysopNameOld[32];
akaListType akaList;
nodeFakeType reservedAka[16-MAX_AKAS];

View File

@@ -152,22 +152,22 @@ struct dom {
};
struct im_stats {
unsigned long th_day_nr; /* nr this day */
unsigned long la_day_nr; /* nr last day */
unsigned long th_week_nr; /* nr this week */
unsigned long la_week_nr; /* nr last week */
unsigned long th_month_nr; /* nr this month */
unsigned long la_month_nr; /* nr last month */
unsigned long th_year_nr; /* nr this year */
unsigned long la_year_nr; /* nr last year */
unsigned long th_day_size; /* amount this day */
unsigned long la_day_size; /* amount last day */
unsigned long th_week_size; /* amount this week */
unsigned long la_week_size; /* amount last week */
unsigned long th_month_size; /* amount this month */
unsigned long la_month_size; /* amount last month */
unsigned long th_year_size; /* amount this year */
unsigned long la_year_size; /* amount last year */
uint32_t th_day_nr; /* nr this day */
uint32_t la_day_nr; /* nr last day */
uint32_t th_week_nr; /* nr this week */
uint32_t la_week_nr; /* nr last week */
uint32_t th_month_nr; /* nr this month */
uint32_t la_month_nr; /* nr last month */
uint32_t th_year_nr; /* nr this year */
uint32_t la_year_nr; /* nr last year */
uint32_t th_day_size; /* amount this day */
uint32_t la_day_size; /* amount last day */
uint32_t th_week_size; /* amount this week */
uint32_t la_week_size; /* amount last week */
uint32_t th_month_size; /* amount this month */
uint32_t la_month_size; /* amount last month */
uint32_t th_year_size; /* amount this year */
uint32_t la_year_size; /* amount last year */
};
@@ -247,7 +247,7 @@ struct im_config_type {
byte unlink_req; /* Unlink areas without dlink */
byte keep_alnk_req; /* keep arealink request */
byte rsvd7; /* reserved */
unsigned long max_dupes; /* max dupes kept in dbase */
uint32_t max_dupes; /* max dupes kept in dbase */
word max_files_per_dir; /* max. nr files when autocreate */
byte deadlink_days; /* nr of days for a dealink req */
byte rsvd8; /* reserved */
@@ -266,8 +266,8 @@ struct im_config_type {
char echojam[MAXPATH]; /* path to ECHOMAIL.JAM */
char before_toss_ii[MAXPATH]; /* call before proc. the PKTs */
char userbase[MAXPATH]; /* path to the userbase */
unsigned long stoptossmsgs; /* stop tossing after xxxxx msgs */
unsigned long stoptossnetmsgs; /* stop tossing after xxxxx net */
uint32_t stoptossmsgs; /* stop tossing after xxxxx msgs */
uint32_t stoptossnetmsgs; /* stop tossing after xxxxx net */
/* msgs within a PKT or at all */
char ignorelist[MAXPATH]; /* list of areas to suppress */
char db_queue[MAXPATH]; /* D'Bridge queue directory */

View File

@@ -833,14 +833,14 @@ struct _common_data {
long crmin; /* Total minutes given to user ..................*/
long dbmin; /* Total minutes used to user ..................*/
char u_section[16]; /* String for user current section */
char ulikes[16]; /* String of user interest keywords .............*/
long fudate; /* First time user called system in seconds */
unsigned long caller_id; /* Unique ID for this user. fudate */
unsigned long Section; /* What "section" of the bbs the user is in. */
word menu_mode; /* What menu the user was at last ...............*/
word TwoBits; /* More user configuration flags */
word After_Externs; /* Any special flags from external? */
char u_section[16]; /* String for user current section */
char ulikes[16]; /* String of user interest keywords .............*/
int32_t fudate; /* First time user called system in seconds */
uint32_t caller_id; /* Unique ID for this user. fudate */
uint32_t Section; /* What "section" of the bbs the user is in. */
word menu_mode; /* What menu the user was at last ...............*/
word TwoBits; /* More user configuration flags */
word After_Externs; /* Any special flags from external? */
byte msecs; /* Number of message areas in User sections defined */
byte fsecs; /* Number of file areas in User sections defined */
@@ -849,14 +849,14 @@ struct _common_data {
word lastmsg[MAXLREAD]; /* All the last message read stuff .....*/
#else
/* New for Opus 1.20 */
char Address[32]; /* User's address */
char My_Ans[64]; /* Reply to prm.My_Question */
char Strfill[32]; /* Filler for more strings */
char bday_mon; /* User's birthday/month */
char bday_day; /* User's birthday/day */
short bday_year; /* User's birthday/year */
unsigned long messages_read; /* Total number of messages read */
long messages_sent; /* Number of messages entered by user */
char Address[32]; /* User's address */
char My_Ans[64]; /* Reply to prm.My_Question */
char Strfill[32]; /* Filler for more strings */
char bday_mon; /* User's birthday/month */
char bday_day; /* User's birthday/day */
short bday_year; /* User's birthday/year */
uint32_t messages_read; /* Total number of messages read */
int32_t messages_sent; /* Number of messages entered by user */
word my_section[MAX_USEC]; /* This is just a block of area */
/* numbers in the user's Section */
@@ -873,7 +873,7 @@ struct _common_data {
byte User_DMacro[16]; /* Default User's keyboard Macro */
byte Sysop_Comment[80]; /* Anything you want to say about 'em */
#endif
unsigned long OPUS_id;
uint32_t OPUS_id;
/* The next 7 sets of id and inf data are for */
/* external programs to use for auxialliary inf. */
@@ -1413,17 +1413,17 @@ struct _ascan { /* structure of address for echoScanning */
/* LMR is used in LREAD.DAT to store the user's last message read counter */
/*--------------------------------------------------------------------------*/
struct _lmr {
unsigned long user_id;
word high_msg;
word last_msg;
uint32_t user_id;
word high_msg;
word last_msg;
};
/*--------------------------------------------------------------------------*/
/* LF is used to store the last time a user has accessed each area */
/*--------------------------------------------------------------------------*/
struct _lf {
unsigned long user_id;
unsigned long last_timestamp;
uint32_t user_id;
uint32_t last_timestamp;
};
/*--------------------------------------------------------------------------*/

View File

@@ -56,12 +56,12 @@ The combined boards are stored in 25 bytes (200 bits). One bit per message
area.
*/
typedef unsigned long accessflags;
typedef unsigned char combinedboards[125];
typedef unsigned char pb_bool;
typedef unsigned char pb_Time[3];
typedef unsigned char Date[3];
typedef unsigned char TimeFrame[7][6];
typedef uint32_t accessflags;
typedef uint8_t combinedboards[125];
typedef uint8_t pb_bool;
typedef uint8_t pb_Time[3];
typedef uint8_t Date[3];
typedef uint8_t TimeFrame[7][6];
/*
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>

View File

@@ -296,23 +296,23 @@ struct _msgarea
char *usenettag;
int minage;
int maxage;
unsigned long r_security1;
unsigned long r_security2;
unsigned long r_flags1;
unsigned long r_flags2;
unsigned long w_security1;
unsigned long w_security2;
unsigned long w_flags1;
unsigned long w_flags2;
unsigned long s_security1;
unsigned long s_security2;
unsigned long s_flags1;
unsigned long s_flags2;
unsigned long areaflags;
unsigned long *groupnum;
PADDR addr;
uint32_t r_security1;
uint32_t r_security2;
uint32_t r_flags1;
uint32_t r_flags2;
uint32_t w_security1;
uint32_t w_security2;
uint32_t w_flags1;
uint32_t w_flags2;
uint32_t s_security1;
uint32_t s_security2;
uint32_t s_flags1;
uint32_t s_flags2;
uint32_t areaflags;
uint32_t *groupnum;
PADDR addr;
PADDR feeds;
unsigned int number;
uint32_t number;
int32_t TimeFactor;
char *password;
struct _msgarea *next;
@@ -352,22 +352,22 @@ struct _filearea
char *descr;
int minage;
int maxage;
unsigned long r_security1;
unsigned long r_security2;
unsigned long r_flags1;
unsigned long r_flags2;
unsigned long w_security1;
unsigned long w_security2;
unsigned long w_flags1;
unsigned long w_flags2;
unsigned long s_security1;
unsigned long s_security2;
unsigned long s_flags1;
unsigned long s_flags2;
unsigned long areaflags;
unsigned long groupnum[256];
uint32_t r_security1;
uint32_t r_security2;
uint32_t r_flags1;
uint32_t r_flags2;
uint32_t w_security1;
uint32_t w_security2;
uint32_t w_flags1;
uint32_t w_flags2;
uint32_t s_security1;
uint32_t s_security2;
uint32_t s_flags1;
uint32_t s_flags2;
uint32_t areaflags;
uint32_t groupnum[256];
int cost_per_k;
unsigned int number;
uint32_t number;
char *upath;
char *dpath;
char *password;
@@ -409,20 +409,20 @@ typedef struct _libarea
char *descr;
int minage;
int maxage;
unsigned long r_security1;
unsigned long r_security2;
unsigned long r_flags1;
unsigned long r_flags2;
unsigned long w_security1;
unsigned long w_security2;
unsigned long w_flags1;
unsigned long w_flags2;
unsigned long s_security1;
unsigned long s_security2;
unsigned long s_flags1;
unsigned long s_flags2;
unsigned long areaflags;
unsigned int number;
uint32_t r_security1;
uint32_t r_security2;
uint32_t r_flags1;
uint32_t r_flags2;
uint32_t w_security1;
uint32_t w_security2;
uint32_t w_flags1;
uint32_t w_flags2;
uint32_t s_security1;
uint32_t s_security2;
uint32_t s_flags1;
uint32_t s_flags2;
uint32_t areaflags;
uint32_t number;
char *path;
char *password;
struct _libarea *next;