mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-13 04:29:03 -04:00
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:
parent
46242bf71b
commit
1290b11508
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user