summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/m_trace.c11
-rw-r--r--src/numeric.c2
2 files changed, 6 insertions, 7 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);
diff --git a/src/numeric.c b/src/numeric.c
index f3ac590..4299045 100644
--- a/src/numeric.c
+++ b/src/numeric.c
@@ -233,7 +233,7 @@ static const char *replies[] = {
/* 203 RPL_TRACEUNKNOWN */ ":%s 203 %s ???? %s %s (%s) %d",
/* 204 RPL_TRACEOPERATOR */ ":%s 204 %s Oper %s %s (%s) %lu %u",
/* 205 RPL_TRACEUSER */ ":%s 205 %s User %s %s (%s) %lu %u",
-/* 206 RPL_TRACESERVER */ ":%s 206 %s Serv %s %dS %dC %s %s!%s@%s %lu",
+/* 206 RPL_TRACESERVER */ ":%s 206 %s Serv %s %uS %uC %s %s!%s@%s %lu",
/* 207 */ NULL,
/* 208 RPL_TRACENEWTYPE */ ":%s 208 %s <newtype> 0 %s",
/* 209 RPL_TRACECLASS */ ":%s 209 %s Class %s %d",