commit - 3a3b3225d42ede7a062fa5e4403a7f445baf518b
commit + f16d230530424f93541b4ca36e2686ddfb76834a
blob - 07f26f319ca2a4ff8a646202d7e2d001fe5c2408
blob + 14d337b9408265b1213a157cd36cf66a8efc057e
--- src/ngircd/conn.c
+++ src/ngircd/conn.c
* @returns Number of listening sockets created.
*/
static unsigned int
-ports_initlisteners(array *a, const char *listen_addr, void (*func)(int,short))
+Init_Listeners(array *a, const char *listen_addr, void (*func)(int,short))
{
unsigned int created = 0;
size_t len;
continue;
}
if (!io_event_create( fd, IO_WANTREAD, func )) {
- Log( LOG_ERR, "io_event_create(): Could not add listening fd %d (port %u): %s!",
- fd, (unsigned int) *port, strerror(errno));
+ Log(LOG_ERR,
+ "io_event_create(): Can't add fd %d (port %u): %s!",
+ fd, (unsigned int) *port, strerror(errno));
close(fd);
port++;
continue;
/* can't use Conf_ListenAddress directly, see below */
copy = strdup(Conf_ListenAddress);
if (!copy) {
- Log(LOG_CRIT, "Cannot copy %s: %s", Conf_ListenAddress, strerror(errno));
+ Log(LOG_CRIT, "Cannot copy %s: %s", Conf_ListenAddress,
+ strerror(errno));
return 0;
}
listen_addr = strtok(copy, ",");
while (listen_addr) {
ngt_TrimStr(listen_addr);
if (*listen_addr) {
- created += ports_initlisteners(&Conf_ListenPorts, listen_addr, cb_listen);
+ created += Init_Listeners(&Conf_ListenPorts,
+ listen_addr, cb_listen);
#ifdef SSL_SUPPORT
- created += ports_initlisteners(&Conf_SSLOptions.ListenPorts, listen_addr, cb_listen_ssl);
+ created += Init_Listeners(&Conf_SSLOptions.ListenPorts,
+ listen_addr, cb_listen_ssl);
#endif
}