+2001-07-09 Kevin L. Mitchell <klmitch@mit.edu>
+
+ * ircd/os_bsd.c (os_get_rusage): move buf into the two ifdef'd
+ sections so that if neither is used, the declaration of buf will
+ not elicit an "unused variable" warning under NetBSD
+
+ * ircd/m_map.c: include string.h to declare strcpy (fix warnings
+ on alpha)
+
+ * ircd/m_away.c: include string.h to declare strcpy/strlen (fix
+ warnings on alpha)
+
+ * ircd/ircd_log.c: include string.h to declare strcpy/strlen (fix
+ warnings on alpha)
+
+ * ircd/client.c: include string.h to declare memset (fix warnings
+ on alpha)
+
+ * ircd/channel.c: remove unused functions next_overlapped_ban,
+ del_banid, and is_deopped (fix warnings under -O1)
+
+ * ircd/IPcheck.c: include string.h to declare memset/memcpy (fix
+ warnings on alpha)
+
2001-06-29 Kevin L. Mitchell <klmitch@mit.edu>
* ircd/s_user.c (set_user_mode): clear the snomask if the user
static unsigned int membershipAllocCount;
static struct Membership* membershipFreeList;
-static struct SLink *next_overlapped_ban(void);
-static int del_banid(struct Channel *, char *, int);
void del_invite(struct Client *, struct Channel *);
const char* const PartFmt1 = ":%s " MSG_PART " %s";
return 0;
}
-static struct SLink *next_overlapped_ban(void)
-{
- struct SLink *tmp = next_ban;
- if (tmp)
- {
- struct SLink *ban;
- for (ban = tmp->next; ban; ban = ban->next)
- if ((ban->flags & CHFL_BAN_OVERLAPPED))
- break;
- next_ban = ban;
- }
- return tmp;
-}
-
struct SLink *next_removed_overlapped_ban(void)
{
struct SLink *tmp = removed_bans_list;
return tmp;
}
-/*
- * del_banid
- *
- * If `change' is true, delete `banid' from channel `chptr'.
- * Returns `false' if removal was (or would have been) successful.
- */
-static int del_banid(struct Channel *chptr, char *banid, int change)
-{
- struct SLink **ban;
- struct SLink *tmp;
-
- if (!banid)
- return -1;
- for (ban = &(chptr->banlist); *ban; ban = &((*ban)->next)) {
- if (0 == ircd_strcmp(banid, (*ban)->value.ban.banstr))
- {
- tmp = *ban;
- if (change)
- {
- struct Membership* member;
- *ban = tmp->next;
- MyFree(tmp->value.ban.banstr);
- MyFree(tmp->value.ban.who);
- free_link(tmp);
- /*
- * Erase ban-valid-bit, for channel members that are banned
- */
- for (member = chptr->members; member; member = member->next_member)
- if (CHFL_BANVALIDMASK == (member->status & CHFL_BANVALIDMASK))
- ClearBanValid(member); /* `tmp' == channel member */
- }
- return 0;
- }
- }
- return -1;
-}
-
/*
* find_channel_member - returns Membership * if a person is joined and not a zombie
*/
return 0;
}
-static int is_deopped(struct Client *cptr, struct Channel *chptr)
-{
- struct Membership* member;
-
- assert(0 != chptr);
- if ((member = find_member_link(chptr, cptr)))
- return IsDeopped(member);
-
- return (IsUser(cptr) ? 1 : 0);
-}
-
int is_zombie(struct Client *cptr, struct Channel *chptr)
{
struct Membership* member;