fixed compiling on macosx

This commit is contained in:
oy 2016-09-11 18:51:20 +02:00
parent cbf79881e8
commit 170b487430
4 changed files with 4 additions and 4 deletions

View file

@ -2113,7 +2113,7 @@ int secure_random_init()
#endif
}
void secure_random_fill(void *bytes, size_t length)
void secure_random_fill(void *bytes, unsigned length)
{
if(!secure_random_data.initialized)
{

View file

@ -1340,7 +1340,7 @@ int secure_random_init();
bytes - Pointer to the start of the buffer.
length - Length of the buffer.
*/
void secure_random_fill(void *bytes, size_t length);
void secure_random_fill(void *bytes, unsigned length);
#ifdef __cplusplus
}

View file

@ -234,7 +234,7 @@ void CServerBrowser::Update(bool ForceResort)
// interface functions
void CServerBrowser::SetType(int Type)
{
if(Type < 0 || Type >= NUM_TYPES && Type != m_ActServerlistType)
if(Type < 0 || Type >= NUM_TYPES || Type == m_ActServerlistType)
return;
m_ActServerlistType = Type;

View file

@ -1,6 +1,6 @@
#import <Cocoa/Cocoa.h>
@interface ServerView : NSTextView
@interface ServerView : NSTextView <NSWindowDelegate>
{
NSTask *task;
NSFileHandle *file;