diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-06-17 18:35:29 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-06-17 18:35:29 +0000 |
commit | 3452848180c0dd7d71fe82e072a29280cdd357d5 (patch) | |
tree | 6a0d7cf4316db582d4b841dfefb0e38cdc4684b3 | |
parent | fa69ecc2627ce89049845283a414a8939c8f6d31 (diff) |
- trace_get_dependent(): use unsigned int here
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2263 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r-- | modules/m_trace.c | 11 | ||||
-rw-r--r-- | src/numeric.c | 2 |
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", |