Fix error, improve messages

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11431 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2001-11-20 05:12:19 +00:00
parent fa6f34e403
commit 60d27e6499
3 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,11 @@
2001-11-19 Adam Fedor <fedor@gnu.org>
* Source/simple-load.h (__objc_dynamic_get_symbol_path): Fix
typo.
* Tools/gdomap.c (nameServer): Print strerror before exiting for
more helpful message.
2001-11-13 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSUser.m:

View file

@ -91,7 +91,7 @@ __objc_dynamic_get_symbol_path(dl_handle_t handle, dl_symbol_t symbol)
dl_symbol_t sym;
Dl_info info;
sym = dlsym(RTLD_NEXT, symbol);
sym = dlsym(handle, symbol);
if (!sym)
return NULL;

View file

@ -3594,7 +3594,7 @@ nameServer(const char* name, const char* host, int op, int ptype, struct sockadd
rval = tryHost(GDO_SERVERS, 0, 0, ptype, &sin, &num, (uptr*)&b);
if (rval != 0 && host == local_hostname)
{
fprintf(stderr, "failed to contact gdomap\n");
fprintf(stderr, "failed to contact gdomap (%s)\n", strerror(errno));
return -1;
}
if (rval == 0)
@ -3646,7 +3646,7 @@ nameServer(const char* name, const char* host, int op, int ptype, struct sockadd
rval = tryHost(op, len, name, ptype, &sin, &port, 0);
if (rval != 0 && host == local_hostname)
{
fprintf(stderr, "failed to contact gdomap\n");
fprintf(stderr, "failed to contact gdomap (%s)\n", strerror(errno));
return -1;
}
nameFail(rval);
@ -3756,7 +3756,7 @@ donames()
rval = tryHost(GDO_NAMES, 0, 0, 0, &sin, &num, (uptr*)&b);
if (rval != 0)
{
fprintf(stderr, "failed to contact gdomap\n");
fprintf(stderr, "failed to contact gdomap (%s)\n", strerror(errno));
return;
}
if (num == 0)