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,74 +436,63 @@ struct ScreenStru; /* ooh! */
#define nick_isaway(s) (s->flags & NICK_AWAY) #define nick_isaway(s) (s->flags & NICK_AWAY)
#define nick_isircop(s) (s->flags & NICK_IRCOP) #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 */ /* NickList: structure for the list of nicknames of people on a channel */
typedef struct nick_stru typedef struct nick_stru
{ {
struct nick_stru *next; /* pointer to next nickname entry */ struct nick_stru *next; /* pointer to next nickname entry */
char *nick; /* nickname of person on channel */ char *nick; /* nickname of person on channel */
char *host; char *host;
char *ip; char *ip;
char *server; char *server;
int serverhops; int serverhops;
my_uint ip_count; unsigned ip_count;
UserList *userlist; UserList *userlist;
ShitList *shitlist; ShitList *shitlist;
unsigned flags;
time_t idle_time;
my_uint flags; unsigned floodcount;
#if 0 time_t floodtime;
int chanop; /* True if the given nick has chanop */
int halfop;
int away;
int voice;
int ircop;
#endif
time_t idle_time;
my_uint floodcount; unsigned nickcount;
time_t floodtime; time_t nicktime;
my_uint nickcount; unsigned kickcount;
time_t nicktime; time_t kicktime;
my_uint kickcount; unsigned joincount;
time_t kicktime; time_t jointime;
my_uint joincount; unsigned dopcount;
time_t jointime; time_t doptime;
my_uint dopcount; unsigned bancount;
time_t doptime; time_t bantime;
my_uint bancount; time_t created;
time_t bantime;
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 */
time_t created; unsigned sent_reop;
time_t sent_reop_time;
unsigned sent_voice;
time_t sent_voice_time;
unsigned sent_deop;
time_t sent_deop_time;
my_uint stat_kicks; /* Total kicks done by user */ unsigned need_userhost; /* on join we send a userhost for this nick */
my_uint stat_dops; /* Total deops done by user */ unsigned check_clone; /* added for builtin clone detect */
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 */
my_uint sent_reop;
time_t sent_reop_time;
my_uint sent_voice;
time_t sent_voice_time;
my_uint 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 */
} NickList; } NickList;
typedef struct DisplayStru typedef struct DisplayStru