summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-04-22 18:33:02 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-04-22 18:33:02 +0000
commite879c2850baee41429db1ed400f01c0faae59483 (patch)
tree572a109f9f78761478c63a335e55722ed193ec2e
parent9b3964095697b2ea4025151bd3a2d7cd77edcde2 (diff)
- Fixed some compile warnings
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1845 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r--include/watch.h2
-rw-r--r--modules/m_xline.c8
-rw-r--r--src/watch.c2
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;