2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

update copyright notice

This commit is contained in:
Automatic Updater
2010-11-17 23:47:09 +00:00
parent 44e3b27290
commit 33cc94f04c
13 changed files with 51 additions and 37 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2005, 2007, 2010 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2002 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: netaddr.c,v 1.40 2010/11/16 05:38:31 marka Exp $ */
/* $Id: netaddr.c,v 1.41 2010/11/17 23:47:08 tbox Exp $ */
/*! \file */
@@ -303,18 +303,18 @@ isc_netaddr_fromin6(isc_netaddr_t *netaddr, const struct in6_addr *ina6) {
isc_result_t
isc_netaddr_frompath(isc_netaddr_t *netaddr, const char *path) {
#ifdef ISC_PLATFORM_HAVESYSUNH
if (strlen(path) > sizeof(netaddr->type.un) - 1)
return (ISC_R_NOSPACE);
if (strlen(path) > sizeof(netaddr->type.un) - 1)
return (ISC_R_NOSPACE);
memset(netaddr, 0, sizeof(*netaddr));
netaddr->family = AF_UNIX;
strcpy(netaddr->type.un, path);
netaddr->zone = 0;
return (ISC_R_SUCCESS);
#else
memset(netaddr, 0, sizeof(*netaddr));
netaddr->family = AF_UNIX;
strcpy(netaddr->type.un, path);
netaddr->zone = 0;
return (ISC_R_SUCCESS);
#else
UNUSED(netaddr);
UNUSED(path);
return (ISC_R_NOTIMPLEMENTED);
return (ISC_R_NOTIMPLEMENTED);
#endif
}