From: Michael Poole Date: Sun, 20 Mar 2005 13:45:28 +0000 (+0000) Subject: Fix typos in various comments. X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=253ef8308c817caf67c29c9815703e20a3a9c9d6 Fix typos in various comments. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1333 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- diff --git a/ChangeLog b/ChangeLog index 87de058..e75bed2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,19 @@ -2005-03-19 Michael Poole +2005-03-20 Michael Poole + (Thanks to Reed Loden for pointing these out.) + + * ircd/channel.c: Fix typos in comments. + + * ircd/m_create.c: Likewise. + + * ircd/m_list.c: Likewise. + + * ircd/m_names.c: Likewise. + + * ircd/numnicks.c: Likewise. + + * ircd/s_bsd.c: Likewise. + +2005-03-20 Michael Poole (Thanks to Reed Loden for pointing these out.) * doc/Configure.help: Remove outdated file. diff --git a/ircd/channel.c b/ircd/channel.c index 98d8361..4d8c0fc 100644 --- a/ircd/channel.c +++ b/ircd/channel.c @@ -18,7 +18,7 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /** @file - * @brief Channel management and maintanance + * @brief Channel management and maintenance * @version $Id$ */ #include "config.h" @@ -895,7 +895,7 @@ void send_channel_modes(struct Client *cptr, struct Channel *chptr) } /* - * Attach nicks, comma seperated " nick[:modes],nick[:modes],..." + * Attach nicks, comma separated " nick[:modes],nick[:modes],..." * * First find all opless members. * Run 2 times over all members, to group the members with @@ -1015,7 +1015,7 @@ void send_channel_modes(struct Client *cptr, struct Channel *chptr) if (!full) { - /* Attach all bans, space seperated " :%ban ban ..." */ + /* Attach all bans, space separated " :%ban ban ..." */ for (first = 2; lp2; lp2 = lp2->next) { len = strlen(lp2->banstr); @@ -1172,7 +1172,7 @@ static void send_ban_list(struct Client* cptr, struct Channel* chptr) * This version contributed by SeKs \ * * @param key Key to check - * @param keyring Comma seperated list of keys + * @param keyring Comma separated list of keys * * @returns True if the key was found and matches, false otherwise. */ @@ -1532,7 +1532,7 @@ int number_of_zombies(struct Channel *chptr) * @param strptr_i modified offset to the position to modify * @param str1 The string to contatenate from. * @param str2 The second string to contatenate from. - * @param c Charactor to seperate the string from str1 and str2. + * @param c Charactor to separate the string from str1 and str2. */ static void build_string(char *strptr, int *strptr_i, const char *str1, diff --git a/ircd/m_create.c b/ircd/m_create.c index 09f5395..da94f5e 100644 --- a/ircd/m_create.c +++ b/ircd/m_create.c @@ -149,7 +149,7 @@ int ms_create(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) joinbuf_init(&join, sptr, cptr, JOINBUF_TYPE_JOIN, 0, 0); joinbuf_init(&create, sptr, cptr, JOINBUF_TYPE_CREATE, 0, chanTS); - /* For each channel in the comma seperated list: */ + /* For each channel in the comma separated list: */ for (name = ircd_strtok(&p, parv[1], ","); name; name = ircd_strtok(&p, 0, ",")) { badop = 0; diff --git a/ircd/m_list.c b/ircd/m_list.c index e470cc4..28755b0 100644 --- a/ircd/m_list.c +++ b/ircd/m_list.c @@ -138,7 +138,7 @@ show_usage(struct Client *sptr) send_reply(sptr, RPL_LISTUSAGE, "Usage: \002/QUOTE LIST\002 \037parameters\037"); send_reply(sptr, RPL_LISTUSAGE, - "Where \037parameters\037 is a space or comma seperated " + "Where \037parameters\037 is a space or comma separated " "list of one or more of:"); send_reply(sptr, RPL_LISTUSAGE, " \002<\002\037max_users\037 ; Show all channels with less " diff --git a/ircd/m_names.c b/ircd/m_names.c index bddfd27..a4627a3 100644 --- a/ircd/m_names.c +++ b/ircd/m_names.c @@ -240,7 +240,7 @@ int m_names(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) else if (*para == '0') *para = '\0'; - s = strchr(para, ','); /* Recursively call m_names for each comma-seperated channel. Eww. */ + s = strchr(para, ','); /* Recursively call m_names for each comma-separated channel. Eww. */ if (s) { parv[1+showingdelayed] = ++s; m_names(cptr, sptr, parc, parv); @@ -382,7 +382,7 @@ int ms_names(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) else if (*para == '0') *para = '\0'; - s = strchr(para, ','); /* Recursively call m_names for each comma-seperated channel. */ + s = strchr(para, ','); /* Recursively call m_names for each comma-separated channel. */ if (s) { parv[1] = ++s; m_names(cptr, sptr, parc, parv); diff --git a/ircd/numnicks.c b/ircd/numnicks.c index cb6212a..b54e20e 100644 --- a/ircd/numnicks.c +++ b/ircd/numnicks.c @@ -88,7 +88,7 @@ static struct Client* server_list[NN_MAX_SERVER]; * * '\\0' : Because we use '\\0' as end of line. * - * ' ' : Because parse_*() uses this as parameter seperator. + * ' ' : Because parse_*() uses this as parameter separator. * * ':' : Because parse_server() uses this to detect if a prefix is a * numeric or a name. diff --git a/ircd/s_bsd.c b/ircd/s_bsd.c index 0ddd46d..5e8b21e 100644 --- a/ircd/s_bsd.c +++ b/ircd/s_bsd.c @@ -193,10 +193,12 @@ static void connect_dns_callback(void* vptr, struct DNSReply* hp) void close_connections(int close_stderr) { int i; - close(0); - close(1); if (close_stderr) + { + close(0); + close(1); close(2); + } for (i = 3; i < MAXCONNECTIONS; ++i) close(i); }