mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
* nss/nss_files/files-ethers.c (ntohost): Fix db key.
This commit is contained in:
parent
96bda0ea44
commit
54955962d2
@ -1,5 +1,7 @@
|
|||||||
Tue Jul 2 10:44:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
|
Tue Jul 2 10:44:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
|
||||||
|
|
||||||
|
* nss/nss_files/files-ethers.c (ntohost): Fix db key.
|
||||||
|
|
||||||
* nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
|
* nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
|
||||||
(DATABASE): Define this instead of DATAFILE.
|
(DATABASE): Define this instead of DATAFILE.
|
||||||
* nss/nss_files/files-hosts.c: Likewise.
|
* nss/nss_files/files-hosts.c: Likewise.
|
||||||
|
@ -64,8 +64,10 @@ DB_LOOKUP (hostton, 1 + strlen (name), (".%s", name),
|
|||||||
break;
|
break;
|
||||||
}, const char *name)
|
}, const char *name)
|
||||||
|
|
||||||
DB_LOOKUP (ntohost, 7, ("=%c%c%c%c%c%c",
|
DB_LOOKUP (ntohost, 18, ("=%x:%x:%x:%x:%x:%x",
|
||||||
addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]),
|
addr->ether_addr_octet[0], addr->ether_addr_octet[1],
|
||||||
|
addr->ether_addr_octet[2], addr->ether_addr_octet[3],
|
||||||
|
addr->ether_addr_octet[4], addr->ether_addr_octet[5]),
|
||||||
{
|
{
|
||||||
if (memcmp (&result->e_addr, addr,
|
if (memcmp (&result->e_addr, addr,
|
||||||
sizeof (struct ether_addr)) == 0)
|
sizeof (struct ether_addr)) == 0)
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
/* Test for ungetc bugs. */
|
/* Test for ungetc bugs. */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#define assert(x) \
|
#define assert(x) \
|
||||||
if (!(x)) \
|
if (!(x)) \
|
||||||
|
Loading…
Reference in New Issue
Block a user