]> jfr.im git - irc/rizon/plexus4.git/commitdiff
gline: Inline declaration and switch to size_t
authorstaticfox <redacted>
Tue, 10 May 2016 06:50:51 +0000 (02:50 -0400)
committerstaticfox <redacted>
Tue, 10 May 2016 06:50:51 +0000 (02:50 -0400)
src/s_gline.c

index 45ccbe2bdf5584cbc77122f6e2abb3409e493cfe..eb3b5ea057e9618cbc9a4d7b9713d21e493bb26c 100644 (file)
@@ -85,9 +85,8 @@ static void
 expire_pending_glines(struct gline_pending *in)
 {
   dlink_node *ptr = NULL, *next_ptr = NULL;
-  unsigned int idx = 0;
 
-  for (; idx < GLINE_PENDING_ADD_TYPE + 1; ++idx)
+  for (size_t idx = 0; idx < GLINE_PENDING_ADD_TYPE + 1; ++idx)
   {
     DLINK_FOREACH_SAFE(ptr, next_ptr, pending_glines[idx].head)
     {