src/irc_chan.c
branchnew-lib-errors
changeset 217 7728d6ec3abf
parent 197 3f9175ead92a
equal deleted inserted replaced
216:a10ba529ae39 217:7728d6ec3abf
   273     {   "KICK",             &irc_chan_on_KICK           },
   273     {   "KICK",             &irc_chan_on_KICK           },
   274     {   "QUIT",             &irc_chan_on_QUIT           },
   274     {   "QUIT",             &irc_chan_on_QUIT           },
   275     {   NULL,       NULL                                }
   275     {   NULL,       NULL                                }
   276 };
   276 };
   277 
   277 
   278 err_t irc_chan_create (struct irc_chan **chan_ptr, struct irc_net *net, const struct irc_chan_info *info, struct error_info *err)
   278 err_t irc_chan_create (struct irc_chan **chan_ptr, struct irc_net *net, const struct irc_chan_info *info, error_t *err)
   279 {
   279 {
   280     struct irc_chan *chan;
   280     struct irc_chan *chan;
   281 
   281 
   282     // allocate
   282     // allocate
   283     if ((chan = calloc(1, sizeof(*chan))) == NULL)
   283     if ((chan = calloc(1, sizeof(*chan))) == NULL)