Patch by Sebastian

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/stable@33360 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-06-20 12:49:30 +00:00
parent 4b7aef44a7
commit ba1a669faf
5 changed files with 20 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2011-06-20 Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
* SSL/GSSSLHandle.m:
* Headers/GNUstepBase/GSFileHandle.h:
Avoid compiler warnings
2011-06-18 Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
* Source/NSObject.m: fix for clang

View file

@ -36,6 +36,9 @@
#include <zlib.h>
#endif
#include <sys/types.h>
#include <netinet/in.h>
/**
* DO NOT USE ... this header is here only for the SSL file handle support
* and is not intended to be used by anyone else ... it is subject to

View file

@ -225,7 +225,7 @@ static BOOL permitSSLv2 = NO;
[super finalize];
}
- (int) read: (void*)buf length: (NSUInteger)len
- (NSInteger) read: (void*)buf length: (NSUInteger)len
{
if (connected)
{
@ -516,7 +516,7 @@ static BOOL permitSSLv2 = NO;
}
}
- (int) write: (const void*)buf length: (NSUInteger)len
- (NSInteger) write: (const void*)buf length: (NSUInteger)len
{
if (connected)
{

View file

@ -624,6 +624,13 @@ purgeCollectedFromMapNode(GSIMapTable map, GSIMapNode node)
static NSNotificationCenter *default_center = nil;
static void cleanup()
{
id i = default_center;
default_center = nil;
[default_center release];
}
+ (void) initialize
{
if (self == [NSNotificationCenter class])
@ -648,6 +655,7 @@ static NSNotificationCenter *default_center = nil;
*/
default_center = [self alloc];
[default_center init];
atexit(cleanup);
}
}

View file

@ -386,7 +386,7 @@ newLanguages(NSArray *oldNames)
+ (void) resetStandardUserDefaults
{
NSDictionary *regDefs;
NSDictionary *regDefs = nil;
[classLock lock];
NS_DURING