diff options
-rw-r--r-- | include/watch.h | 2 | ||||
-rw-r--r-- | modules/m_xline.c | 8 | ||||
-rw-r--r-- | src/watch.c | 2 |
3 files changed, 3 insertions, 9 deletions
diff --git a/include/watch.h b/include/watch.h index 2d14818..21a71dc 100644 --- a/include/watch.h +++ b/include/watch.h @@ -41,7 +41,7 @@ struct Watch extern void watch_init(void); extern void watch_add_to_hash_table(const char *, struct Client *); extern void watch_del_from_hash_table(const char *, struct Client *); -extern void watch_check_hash(struct Client *, int); +extern void watch_check_hash(struct Client *, unsigned int); extern void watch_del_watch_list(struct Client *); extern void watch_count_memory(unsigned int *const, uint64_t *const); extern struct Watch *watch_find_hash(const char *); diff --git a/modules/m_xline.c b/modules/m_xline.c index 9127b08..37fb9a9 100644 --- a/modules/m_xline.c +++ b/modules/m_xline.c @@ -325,17 +325,11 @@ static void write_xline(struct Client *source_p, char *gecos, char *reason, time_t tkline_time) { - struct MaskItem *conf; - const char *current_date; - time_t cur_time; - - conf = conf_make(CONF_XLINE); + struct MaskItem *conf = conf_make(CONF_XLINE); collapse(gecos); conf->name = xstrdup(gecos); conf->reason = xstrdup(reason); - cur_time = CurrentTime; - current_date = smalldate(cur_time); conf->setat = CurrentTime; SetConfDatabase(conf); diff --git a/src/watch.c b/src/watch.c index 2384849..63af093 100644 --- a/src/watch.c +++ b/src/watch.c @@ -82,7 +82,7 @@ watch_count_memory(unsigned int *const count, uint64_t *const memory) * \param reply numeric to send. Either RPL_LOGON or RPL_LOGOFF */ void -watch_check_hash(struct Client *client_p, int reply) +watch_check_hash(struct Client *client_p, unsigned int reply) { struct Watch *anptr = NULL; dlink_node *ptr = NULL; |