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

Comparing ircd-hybrid/trunk/src/client.c (file contents):
Revision 4086 by michael, Sat Jun 28 16:44:20 2014 UTC vs.
Revision 4094 by michael, Sun Jun 29 11:48:50 2014 UTC

# Line 60 | Line 60 | dlink_list serv_list = {NULL, NULL, 0};
60   dlink_list global_serv_list = {NULL, NULL, 0};
61   dlink_list oper_list = {NULL, NULL, 0};
62  
63 < static EVH check_pings;
63 > static void check_pings(void *);
64  
65   static mp_pool_t *client_pool  = NULL;
66   static mp_pool_t *lclient_pool = NULL;
# Line 83 | Line 83 | static void check_unknowns_list(void);
83   void
84   client_init(void)
85   {
86 <  /* start off the check ping event ..  -- adrian
87 <   * Every 30 seconds is plenty -- db
88 <   */
86 >  static struct event event_ping =
87 >  {
88 >    .name = "check_pings",
89 >    .handler = check_pings,
90 >    .when = 5
91 >  };
92 >
93    client_pool = mp_pool_new(sizeof(struct Client), MP_CHUNK_SIZE_CLIENT);
94    lclient_pool = mp_pool_new(sizeof(struct LocalUser), MP_CHUNK_SIZE_LCLIENT);
95 <  eventAdd("check_pings", check_pings, NULL, 5);
95 >  event_add(&event_ping, NULL);
96   }
97  
98   /*

Diff Legend

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