mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-03 01:50:55 +00:00
fix bad return value for NSMutableSet-classForCoder
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30878 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3096e38f6a
commit
26f5110852
3 changed files with 12 additions and 4 deletions
|
@ -1,9 +1,17 @@
|
|||
<<<<<<< .mine
|
||||
2010-06-28 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSSet.m: Fix incorrect return value in NSMutableSet's
|
||||
-classForCoder method.
|
||||
|
||||
=======
|
||||
2010-06-28 Quentin Mathe <quentin.mathe@gmail.com>
|
||||
|
||||
* Tools/autogsdoc.m: Improved to search for .m files among the
|
||||
command-line arguments in addition to the current directory and
|
||||
documentation directory.
|
||||
|
||||
>>>>>>> .r30877
|
||||
2010-06-26 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSObject.m: Remove the Object(NSObjectCompat) category as the
|
||||
|
|
|
@ -946,7 +946,7 @@ static Class NSMutableSet_concrete_class;
|
|||
|
||||
- (Class) classForCoder
|
||||
{
|
||||
return NSMutableSet_concrete_class;
|
||||
return NSMutableSet_abstract_class;
|
||||
}
|
||||
|
||||
/** <init /> <override-subclass />
|
||||
|
|
|
@ -4073,10 +4073,10 @@ nameServer(const char* name, const char* host, int op, int ptype, struct sockadd
|
|||
if (op == GDO_REGISTER)
|
||||
{
|
||||
port = (unsigned short)pnum;
|
||||
if (port == 0)
|
||||
if (port == 0 || htons(port) == p)
|
||||
{
|
||||
snprintf(ebuf, sizeof(ebuf),
|
||||
"attempted registration with bad port.");
|
||||
"attempted registration with bad port (%d).", port);
|
||||
gdomap_log(LOG_ERR);
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue