ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/server.c
(Generate patch)

Comparing ircd-hybrid-7.2/src/s_serv.c (file contents):
Revision 896 by michael, Sat Nov 3 08:54:09 2007 UTC vs.
Revision 948 by michael, Tue Jul 21 17:34:06 2009 UTC

# Line 127 | Line 127 | slink_zipstats(unsigned int rpl, unsigne
127                 struct Client *server_p)
128   {
129    struct ZipStats zipstats;
130 <  unsigned long in = 0, in_wire = 0, out = 0, out_wire = 0;
130 >  uint64_t in = 0, in_wire = 0, out = 0, out_wire = 0;
131    int i = 0;
132  
133    assert(rpl == SLINKRPL_ZIPSTATS);
# Line 187 | Line 187 | slink_zipstats(unsigned int rpl, unsigne
187    else
188      zipstats.out_ratio = 0;
189  
190 <  memcpy(&server_p->localClient->zipstats, &zipstats, sizeof (struct ZipStats));
190 >  memcpy(&server_p->localClient->zipstats, &zipstats, sizeof(struct ZipStats));
191   }
192  
193   void
194   collect_zipstats(void *unused)
195   {
196 <  dlink_node *ptr;
197 <  struct Client *target_p;
196 >  dlink_node *ptr = NULL;
197  
198    DLINK_FOREACH(ptr, serv_list.head)
199    {
200 <    target_p = ptr->data;
200 >    struct Client *target_p = ptr->data;
201  
202      if (IsCapable(target_p, CAP_ZIP))
203      {

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)