Remove pointless typedef my_uint in struct.h

This commit is contained in:
Kevin Easton
2016-11-02 16:55:10 +11:00
parent 34c2a66a35
commit a5b78db7db

View File

@@ -436,8 +436,6 @@ struct ScreenStru; /* ooh! */
#define nick_isaway(s) (s->flags & NICK_AWAY)
#define nick_isircop(s) (s->flags & NICK_IRCOP)
typedef unsigned int my_uint;
/* NickList: structure for the list of nicknames of people on a channel */
typedef struct nick_stru
{
@@ -447,63 +445,54 @@ typedef struct nick_stru
char *ip;
char *server;
int serverhops;
my_uint ip_count;
unsigned ip_count;
UserList *userlist;
ShitList *shitlist;
my_uint flags;
#if 0
int chanop; /* True if the given nick has chanop */
int halfop;
int away;
int voice;
int ircop;
#endif
unsigned flags;
time_t idle_time;
my_uint floodcount;
unsigned floodcount;
time_t floodtime;
my_uint nickcount;
unsigned nickcount;
time_t nicktime;
my_uint kickcount;
unsigned kickcount;
time_t kicktime;
my_uint joincount;
unsigned joincount;
time_t jointime;
my_uint dopcount;
unsigned dopcount;
time_t doptime;
my_uint bancount;
unsigned bancount;
time_t bantime;
time_t created;
my_uint stat_kicks; /* Total kicks done by user */
my_uint stat_dops; /* Total deops done by user */
my_uint stat_ops; /* Total ops done by user */
my_uint stat_hops;
my_uint stat_dhops;
my_uint stat_eban;
my_uint stat_uneban;
my_uint stat_bans; /* Total bans done by user */
my_uint stat_unbans; /* Total unbans done by user */
my_uint stat_nicks; /* Total nicks done by user */
my_uint stat_pub; /* Total publics sent by user */
my_uint stat_topics; /* Total topics set by user */
unsigned stat_kicks; /* Total kicks done by user */
unsigned stat_dops; /* Total deops done by user */
unsigned stat_ops; /* Total ops done by user */
unsigned stat_hops;
unsigned stat_dhops;
unsigned stat_eban;
unsigned stat_uneban;
unsigned stat_bans; /* Total bans done by user */
unsigned stat_unbans; /* Total unbans done by user */
unsigned stat_nicks; /* Total nicks done by user */
unsigned stat_pub; /* Total publics sent by user */
unsigned stat_topics; /* Total topics set by user */
my_uint sent_reop;
unsigned sent_reop;
time_t sent_reop_time;
my_uint sent_voice;
unsigned sent_voice;
time_t sent_voice_time;
my_uint sent_deop;
unsigned sent_deop;
time_t sent_deop_time;
my_uint need_userhost; /* on join we send a userhost for this nick */
my_uint check_clone; /* added for builtin clone detect */
unsigned need_userhost; /* on join we send a userhost for this nick */
unsigned check_clone; /* added for builtin clone detect */
} NickList;
typedef struct DisplayStru