summaryrefslogtreecommitdiff
path: root/modules/m_trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/m_trace.c')
-rw-r--r--modules/m_trace.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/m_trace.c b/modules/m_trace.c
index 3c1be75..160b6ac 100644
--- a/modules/m_trace.c
+++ b/modules/m_trace.c
@@ -42,8 +42,8 @@ static void do_actual_trace(struct Client *, int, char *[]);
static void report_this_status(struct Client *, struct Client *, int);
static void
-trace_get_dependent(int *const server,
- int *const client, const struct Client *target_p)
+trace_get_dependent(unsigned int *const server,
+ unsigned int *const client, const struct Client *target_p)
{
const dlink_node *ptr = NULL;
@@ -64,7 +64,7 @@ static void
m_trace(struct Client *client_p, struct Client *source_p,
int parc, char *parv[])
{
- const char *tname;
+ const char *tname = NULL;
if (parc > 1)
tname = parv[1];
@@ -75,7 +75,6 @@ m_trace(struct Client *client_p, struct Client *source_p,
me.name, source_p->name, tname);
}
-
/* mo_trace()
* parv[0] = sender prefix
* parv[1] = servername
@@ -392,8 +391,8 @@ report_this_status(struct Client *source_p, struct Client *target_p, int dow)
break;
case STAT_SERVER:
{
- int clients = 0;
- int servers = 0;
+ unsigned int clients = 0;
+ unsigned int servers = 0;
trace_get_dependent(&servers, &clients, target_p);