make sure we include the right headers and fix a warning in cmode_b

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9269 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2008-04-02 18:05:25 +00:00
parent 46242bf71b
commit 1290b11508
2 changed files with 3 additions and 4 deletions

View File

@ -76,7 +76,7 @@ void ModeChannelBan::DisplayList(User* user, Channel* channel)
/* Display the channel banlist */
for (BanList::reverse_iterator i = channel->bans.rbegin(); i != channel->bans.rend(); ++i)
{
user->WriteServ("367 %s %s %s %s %ld",user->nick, channel->name, i->data, i->set_by, i->set_time);
user->WriteServ("367 %s %s %s %s %lu",user->nick, channel->name, i->data, i->set_by, (unsigned long)i->set_time);
}
user->WriteServ("368 %s %s :End of channel ban list",user->nick, channel->name);
return;

View File

@ -17,7 +17,7 @@
#include <sys/event.h>
#include <sys/time.h>
#include "socketengines/socketengine_kqueue.h"
#include <ulimit.h>
#include <sys/sysctl.h>
KQueueEngine::KQueueEngine(InspIRCd* Instance) : SocketEngine(Instance)
{
@ -130,9 +130,8 @@ int KQueueEngine::GetMaxFds()
mib[1] = KERN_MAXFILES;
len = sizeof(maxfiles);
sysctl(mib, 2, &maxfiles, &len, NULL, 0);
MAX_DESCRIPTORS = maxfiles;
return max;
return maxfiles;
}
return MAX_DESCRIPTORS;
}