avoid some compiler warnings

fix oen inforrect use of ansi mingw function


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21956 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2005-11-05 17:41:01 +00:00
parent e6fd4ca0d1
commit 38e23cc6cb
5 changed files with 55 additions and 21 deletions

View file

@ -53,11 +53,6 @@
#define UNISTR(X) \
((const unichar*)[(X) cStringUsingEncoding: NSUnicodeStringEncoding])
/*
* Largest chunk of data possible in DO
*/
static gsu32 maxDataLength = 10 * 1024 * 1024;
#if 0
#define M_LOCK(X) {NSDebugMLLog(@"NSMessagePort",@"lock %@",X); [X lock];}
#define M_UNLOCK(X) {NSDebugMLLog(@"NSMessagePort",@"unlock %@",X); [X unlock];}
@ -104,6 +99,13 @@ typedef struct {
unsigned char addr[0]; /* name of the port on the local host */
} GSPortInfo;
#if 0
/*
* Largest chunk of data possible in DO
*/
static gsu32 maxDataLength = 10 * 1024 * 1024;
/*
* Utility functions for encoding and decoding ports.
*/
@ -153,6 +155,7 @@ newDataWithEncodedPort(NSMessagePort *port)
return data;
}
#endif
@implementation NSMessagePort
@ -428,7 +431,6 @@ static unsigned wordAlign;
extra: (void*)extra
forMode: (NSString*)mode
{
HANDLE h = (HANDLE)(gsaddr)extra;
}