summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-06-17 18:35:29 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-06-17 18:35:29 +0000
commit3452848180c0dd7d71fe82e072a29280cdd357d5 (patch)
tree6a0d7cf4316db582d4b841dfefb0e38cdc4684b3 /modules
parentfa69ecc2627ce89049845283a414a8939c8f6d31 (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
Diffstat (limited to 'modules')
-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);