mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
fixed compiling on macosx
This commit is contained in:
parent
cbf79881e8
commit
170b487430
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@interface ServerView : NSTextView
|
||||
@interface ServerView : NSTextView <NSWindowDelegate>
|
||||
{
|
||||
NSTask *task;
|
||||
NSFileHandle *file;
|
||||
|
|
Loading…
Reference in a new issue