Minor change to avoid some warning messages.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13494 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-04-18 09:58:18 +00:00
parent a4d46f6a67
commit ddf39e7c58
2 changed files with 6 additions and 2 deletions

View file

@ -1,8 +1,11 @@
2002-04-17 Richard Frith-Macdonald <rfm@gnu.org> 2002-04-18 Richard Frith-Macdonald <rfm@gnu.org>
* Tools/gdomap.c: re-order headers so config.h is used on windoze * Tools/gdomap.c: re-order headers so config.h is used on windoze
* Source/NSFileManager.m: ([-fileSystemRepresentationWithPath:]) * Source/NSFileManager.m: ([-fileSystemRepresentationWithPath:])
modified to handle MSYS paths with '/drive/' prefix. modified to handle MSYS paths with '/drive/' prefix.
* Source/GSTcpPort.m: ([-invalidate]) call superclass implementation
at start, so flag gets set to say we are not valid, and we avoid any
recursive calls.
2002-04-16 Richard Frith-Macdonald <rfm@gnu.org> 2002-04-16 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -1769,6 +1769,8 @@ static Class tcpPortClass;
NSArray *handleArray; NSArray *handleArray;
unsigned i; unsigned i;
[super invalidate]; // Avoid recursive calls
[tcpPortLock lock]; [tcpPortLock lock];
thePorts = NSMapGet(tcpPortMap, (void*)(gsaddr)portNum); thePorts = NSMapGet(tcpPortMap, (void*)(gsaddr)portNum);
if (thePorts != 0) if (thePorts != 0)
@ -1795,7 +1797,6 @@ static Class tcpPortClass;
NSFreeMapTable(handles); NSFreeMapTable(handles);
handles = 0; handles = 0;
} }
[super invalidate];
} }
DO_UNLOCK(myLock); DO_UNLOCK(myLock);
} }