+2001-02-02 Ulrich Drepper <drepper@redhat.com>
+
+ * string/tst-svc.input: Add two more test cases.
+ * string/tst-svc.expect: Modify to reflect new test cases.
+
+2001-02-01 Jakub Jelinek <jakub@redhat.com>
+
+ * sysdeps/posix/getaddrinfo.c (gaih_local, gaih_inet): Replace all
+ tp->name tests with tp->name[0] tests.
+
+2001-01-29 Ben Collins <bcollins@debian.org>
+
+ * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r):
+ Fix check for name == NULL.
+
2001-02-01 Ulrich Drepper <drepper@redhat.com>
* elf/Makefile: Add rules to build and run initfirst test.
-/* Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Thorsten Kukuk <kukuk@suse.de>, 1997.
return status;
}
- if (name != NULL)
+ if (name == NULL)
{
*errnop = EINVAL;
return NSS_STATUS_UNAVAIL;
{
const struct gaih_typeproto *tp = gaih_inet_typeproto + 1;
- while (tp->name != NULL
+ while (tp->name[0]
&& ((tp->protoflag & GAI_PROTO_NOSERVICE) != 0
|| (req->ai_socktype != 0 && req->ai_socktype != tp->socktype)
|| (req->ai_protocol != 0
&& req->ai_protocol != tp->protocol)))
++tp;
- if (tp->name == NULL)
+ if (! tp->name[0])
{
if (req->ai_socktype)
return (GAIH_OKIFUNSPEC | -EAI_SOCKTYPE);
{
++tp;
- while (tp->name != NULL
+ while (tp->name[0]
&& ((req->ai_socktype != 0 && req->ai_socktype != tp->socktype)
|| (req->ai_protocol != 0
&& !(tp->protoflag & GAI_PROTO_PROTOANY)
&& req->ai_protocol != tp->protocol)))
++tp;
- if (tp->name == NULL)
+ if (! tp->name[0])
{
if (req->ai_socktype)
return (GAIH_OKIFUNSPEC | -EAI_SOCKTYPE);
if (service->num < 0)
{
- if (tp->name != NULL)
+ if (tp->name[0])
{
st = (struct gaih_servtuple *)
__alloca (sizeof (struct gaih_servtuple));
else
{
struct gaih_servtuple **pst = &st;
- for (tp++; tp->name; tp++)
+ for (tp++; tp->name[0]; tp++)
{
struct gaih_servtuple *newp;
/* Neither socket type nor protocol is set. Return all socket types
we know about. */
struct gaih_servtuple **lastp = &st;
- for (++tp; tp->name != NULL; ++tp)
+ for (++tp; tp->name[0]; ++tp)
{
struct gaih_servtuple *newp;