INN commit: trunk/innd (art.c)
INN Commit
Russ_Allbery at isc.org
Wed Apr 9 18:18:56 UTC 2008
Date: Wednesday, April 9, 2008 @ 11:18:56
Author: iulius
Revision: 7754
Use size_t instead of casting.
Modified:
trunk/innd/art.c
-------+
art.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
Modified: art.c
===================================================================
--- art.c 2008-04-09 18:05:59 UTC (rev 7753)
+++ art.c 2008-04-09 18:18:56 UTC (rev 7754)
@@ -1872,6 +1872,7 @@
{
char *p, **groups, ControlWord[SMBUF], **hops, *controlgroup;
int i, j, *isp, hopcount, oerrno, canpost;
+ size_t n;
NEWSGROUP *ngp, **ngptr;
SITE *sp;
ARTDATA *data = &cp->Data;
@@ -1941,14 +1942,14 @@
return false;
}
- i = strlen(hops[0]);
- if (i == (signed int) Path.used - 1 &&
+ n = strlen(hops[0]);
+ if (n == Path.used - 1 &&
strncmp(Path.data, hops[0], Path.used - 1) == 0)
data->Hassamepath = true;
else
data->Hassamepath = false;
if (Pathcluster.data != NULL &&
- i == (signed int) Pathcluster.used - 1 &&
+ n == Pathcluster.used - 1 &&
strncmp(Pathcluster.data, hops[0], Pathcluster.used - 1) == 0)
data->Hassamecluster = true;
else
More information about the inn-committers
mailing list