fixed c99ism

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25859 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rmottola 2008-01-04 15:27:10 +00:00
parent 5b1411d52a
commit 2c22400865
2 changed files with 10 additions and 6 deletions

View file

@ -765,6 +765,7 @@ replacementForClass(Class c)
context: (void*)aContext
{
NSMapTable *observers;
NSMapTable *observer;
[iLock lock];
observers = (NSMapTable*)NSMapGet(paths, (void*)aPath);
@ -781,7 +782,7 @@ replacementForClass(Class c)
* FIXME ... should store an object containing context and options.
* For simplicity right now, just store context or a dummy value.
*/
NSMapTable * observer = NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,
observer = NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,
NSNonOwnedPointerMapValueCallBacks, 3);
NSMapInsert(observer, (void *)@"context", aContext);
NSMapInsert(observer, (void *)@"options", (void *)options);