tweak gnustls support for windows

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25918 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2008-01-10 12:25:45 +00:00
parent 1cdce22b47
commit 2fa645b46d
2 changed files with 14 additions and 20 deletions

View file

@ -147,11 +147,7 @@ static RunLoopEventType typeForStream(NSStream *aStream)
{
if (_currentStatus == NSStreamStatusNotOpen)
{
NSDebugMLog(@"Attempt to close unopened stream %@", self);
}
if (_currentStatus == NSStreamStatusClosed)
{
NSDebugMLog(@"Attempt to close already closed stream %@", self);
NSDebugMLLog(@"NSStream", @"Attempt to close unopened stream %@", self);
}
[self _unschedule];
[self _setStatus: NSStreamStatusClosed];
@ -203,7 +199,7 @@ static RunLoopEventType typeForStream(NSStream *aStream)
if (_currentStatus != NSStreamStatusNotOpen
&& _currentStatus != NSStreamStatusOpening)
{
NSDebugMLog(@"Attempt to re-open stream %@", self);
NSDebugMLLog(@"NSStream", @"Attempt to re-open stream %@", self);
}
[self _setStatus: NSStreamStatusOpen];
[self _schedule];
@ -392,7 +388,7 @@ static RunLoopEventType typeForStream(NSStream *aStream)
- (void) _recordError: (NSError*)anError
{
// NSLog(@"%@ - %@", self, anError);
NSDebugMLLog(@"NSStream", @"record error: %@ - %@", self, anError);
ASSIGN(_lastError, anError);
_currentStatus = NSStreamStatusError;
}