fix incomplete initializers
This commit is contained in:
parent
a8756e84f2
commit
ce2c90c7c1
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: getgrent.c,v 1.59 2006/03/19 03:08:11 christos Exp $ */
|
||||
/* $NetBSD: getgrent.c,v 1.60 2006/10/15 16:14:46 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999-2000, 2004-2005 The NetBSD Foundation, Inc.
|
||||
|
@ -95,7 +95,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)getgrent.c 8.2 (Berkeley) 3/21/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: getgrent.c,v 1.59 2006/03/19 03:08:11 christos Exp $");
|
||||
__RCSID("$NetBSD: getgrent.c,v 1.60 2006/10/15 16:14:46 christos Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -1347,21 +1347,21 @@ __grscan_compat(int *retval, struct group *grp, char *buffer, size_t buflen,
|
|||
NS_DNS_CB(_dns_getgrent_r, NULL)
|
||||
NS_NIS_CB(_nis_getgrent_r, NULL)
|
||||
NS_COMPAT_CB(__grbad_compat, "compat")
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
static const ns_dtab compatgiddtab[] = {
|
||||
NS_FILES_CB(__grbad_compat, "files")
|
||||
NS_DNS_CB(_dns_getgrgid_r, NULL)
|
||||
NS_NIS_CB(_nis_getgrgid_r, NULL)
|
||||
NS_COMPAT_CB(__grbad_compat, "compat")
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
static const ns_dtab compatnamdtab[] = {
|
||||
NS_FILES_CB(__grbad_compat, "files")
|
||||
NS_DNS_CB(_dns_getgrnam_r, NULL)
|
||||
NS_NIS_CB(_nis_getgrnam_r, NULL)
|
||||
NS_COMPAT_CB(__grbad_compat, "compat")
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
_DIAGASSERT(retval != NULL);
|
||||
|
@ -1506,7 +1506,7 @@ _compat_setgrent(void *nsrv, void *nscb, va_list ap)
|
|||
NS_DNS_CB(_dns_setgrent, NULL)
|
||||
NS_NIS_CB(_nis_setgrent, NULL)
|
||||
NS_COMPAT_CB(__grbad_compat, "compat")
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
/* force group_compat setgrent() */
|
||||
|
@ -1532,7 +1532,7 @@ _compat_setgroupent(void *nsrv, void *nscb, va_list ap)
|
|||
NS_DNS_CB(_dns_setgroupent, NULL)
|
||||
NS_NIS_CB(_nis_setgroupent, NULL)
|
||||
NS_COMPAT_CB(__grbad_compat, "compat")
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
/* force group_compat setgroupent() */
|
||||
|
@ -1554,7 +1554,7 @@ _compat_endgrent(void *nsrv, void *nscb, va_list ap)
|
|||
NS_DNS_CB(_dns_endgrent, NULL)
|
||||
NS_NIS_CB(_nis_endgrent, NULL)
|
||||
NS_COMPAT_CB(__grbad_compat, "compat")
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
/* force group_compat endgrent() */
|
||||
|
@ -1737,7 +1737,7 @@ getgrent(void)
|
|||
NS_DNS_CB(_dns_getgrent, NULL)
|
||||
NS_NIS_CB(_nis_getgrent, NULL)
|
||||
NS_COMPAT_CB(_compat_getgrent, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
mutex_lock(&__grmutex);
|
||||
|
@ -1758,7 +1758,7 @@ getgrent_r(struct group *grp, char *buffer, size_t buflen,
|
|||
NS_DNS_CB(_dns_getgrent_r, NULL)
|
||||
NS_NIS_CB(_nis_getgrent_r, NULL)
|
||||
NS_COMPAT_CB(_compat_getgrent_r, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
mutex_lock(&__grmutex);
|
||||
|
@ -1786,7 +1786,7 @@ getgrgid(gid_t gid)
|
|||
NS_DNS_CB(_dns_getgrgid, NULL)
|
||||
NS_NIS_CB(_nis_getgrgid, NULL)
|
||||
NS_COMPAT_CB(_compat_getgrgid, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
mutex_lock(&__grmutex);
|
||||
|
@ -1807,7 +1807,7 @@ getgrgid_r(gid_t gid, struct group *grp, char *buffer, size_t buflen,
|
|||
NS_DNS_CB(_dns_getgrgid_r, NULL)
|
||||
NS_NIS_CB(_nis_getgrgid_r, NULL)
|
||||
NS_COMPAT_CB(_compat_getgrgid_r, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
_DIAGASSERT(grp != NULL);
|
||||
|
@ -1840,7 +1840,7 @@ getgrnam(const char *name)
|
|||
NS_DNS_CB(_dns_getgrnam, NULL)
|
||||
NS_NIS_CB(_nis_getgrnam, NULL)
|
||||
NS_COMPAT_CB(_compat_getgrnam, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
mutex_lock(&__grmutex);
|
||||
|
@ -1861,7 +1861,7 @@ getgrnam_r(const char *name, struct group *grp, char *buffer, size_t buflen,
|
|||
NS_DNS_CB(_dns_getgrnam_r, NULL)
|
||||
NS_NIS_CB(_nis_getgrnam_r, NULL)
|
||||
NS_COMPAT_CB(_compat_getgrnam_r, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
_DIAGASSERT(name != NULL);
|
||||
|
@ -1892,7 +1892,7 @@ endgrent(void)
|
|||
NS_DNS_CB(_dns_endgrent, NULL)
|
||||
NS_NIS_CB(_nis_endgrent, NULL)
|
||||
NS_COMPAT_CB(_compat_endgrent, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
mutex_lock(&__grmutex);
|
||||
|
@ -1910,7 +1910,7 @@ setgroupent(int stayopen)
|
|||
NS_DNS_CB(_dns_setgroupent, NULL)
|
||||
NS_NIS_CB(_nis_setgroupent, NULL)
|
||||
NS_COMPAT_CB(_compat_setgroupent, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
int rv, retval;
|
||||
|
||||
|
@ -1930,7 +1930,7 @@ setgrent(void)
|
|||
NS_DNS_CB(_dns_setgrent, NULL)
|
||||
NS_NIS_CB(_nis_setgrent, NULL)
|
||||
NS_COMPAT_CB(_compat_setgrent, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
mutex_lock(&__grmutex);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: getgroupmembership.c,v 1.1 2005/01/06 15:10:45 lukem Exp $ */
|
||||
/* $NetBSD: getgroupmembership.c,v 1.2 2006/10/15 16:14:46 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2004-2005 The NetBSD Foundation, Inc.
|
||||
|
@ -38,7 +38,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: getgroupmembership.c,v 1.1 2005/01/06 15:10:45 lukem Exp $");
|
||||
__RCSID("$NetBSD: getgroupmembership.c,v 1.2 2006/10/15 16:14:46 christos Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
/*
|
||||
|
@ -302,7 +302,7 @@ _compat_ggm_search(void *cookie, struct group **groupres)
|
|||
NS_DNS_CB(_dns_getgroupmembership, NULL)
|
||||
NS_NIS_CB(_nis_getgroupmembership, NULL)
|
||||
NS_COMPAT_CB(__grbad_compat, "compat")
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
*groupres = NULL; /* we don't care about this */
|
||||
|
@ -383,7 +383,7 @@ getgroupmembership(const char *uname, gid_t agroup,
|
|||
NS_DNS_CB(_dns_getgroupmembership, NULL)
|
||||
NS_NIS_CB(_nis_getgroupmembership, NULL)
|
||||
NS_COMPAT_CB(_compat_getgroupmembership, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
_DIAGASSERT(uname != NULL);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: getnetgrent.c,v 1.36 2006/08/03 17:38:26 tron Exp $ */
|
||||
/* $NetBSD: getnetgrent.c,v 1.37 2006/10/15 16:14:46 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christos Zoulas
|
||||
|
@ -33,7 +33,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: getnetgrent.c,v 1.36 2006/08/03 17:38:26 tron Exp $");
|
||||
__RCSID("$NetBSD: getnetgrent.c,v 1.37 2006/10/15 16:14:46 christos Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include "namespace.h"
|
||||
|
@ -92,7 +92,7 @@ static const ns_src default_files_nis[] = {
|
|||
#ifdef YP
|
||||
{ NSSRC_NIS, NS_SUCCESS },
|
||||
#endif
|
||||
{ 0 }
|
||||
{ 0, 0 },
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@ -319,7 +319,7 @@ lookup(char *name, char **line, int bywhat)
|
|||
static const ns_dtab dtab[] = {
|
||||
NS_FILES_CB(_local_lookup, NULL)
|
||||
NS_NIS_CB(_nis_lookup, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
_DIAGASSERT(name != NULL);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: getpwent.c,v 1.72 2006/06/29 21:16:04 ginsbach Exp $ */
|
||||
/* $NetBSD: getpwent.c,v 1.73 2006/10/15 16:14:46 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997-2000, 2004-2005 The NetBSD Foundation, Inc.
|
||||
|
@ -95,7 +95,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)getpwent.c 8.2 (Berkeley) 4/27/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: getpwent.c,v 1.72 2006/06/29 21:16:04 ginsbach Exp $");
|
||||
__RCSID("$NetBSD: getpwent.c,v 1.73 2006/10/15 16:14:46 christos Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -1796,7 +1796,7 @@ _passwdcompat_setpassent(int stayopen)
|
|||
NS_DNS_CB(_dns_setpassent, NULL)
|
||||
NS_NIS_CB(_nis_setpassent, NULL)
|
||||
NS_COMPAT_CB(_passwdcompat_bad, "compat")
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
int rv, result;
|
||||
|
@ -1818,7 +1818,7 @@ _passwdcompat_endpwent(void)
|
|||
NS_DNS_CB(_dns_endpwent, NULL)
|
||||
NS_NIS_CB(_nis_endpwent, NULL)
|
||||
NS_COMPAT_CB(_passwdcompat_bad, "compat")
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
return nsdispatch(NULL, dtab, NSDB_PASSWD_COMPAT, "endpwent",
|
||||
|
@ -1841,21 +1841,21 @@ _passwdcompat_pwscan(struct passwd *pw, char *buffer, size_t buflen,
|
|||
NS_DNS_CB(_dns_getpwent_r, NULL)
|
||||
NS_NIS_CB(_nis_getpwent_r, NULL)
|
||||
NS_COMPAT_CB(_passwdcompat_bad, "compat")
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
static const ns_dtab compatuiddtab[] = {
|
||||
NS_FILES_CB(_passwdcompat_bad, "files")
|
||||
NS_DNS_CB(_dns_getpwuid_r, NULL)
|
||||
NS_NIS_CB(_nis_getpwuid_r, NULL)
|
||||
NS_COMPAT_CB(_passwdcompat_bad, "compat")
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
static const ns_dtab compatnamdtab[] = {
|
||||
NS_FILES_CB(_passwdcompat_bad, "files")
|
||||
NS_DNS_CB(_dns_getpwnam_r, NULL)
|
||||
NS_NIS_CB(_nis_getpwnam_r, NULL)
|
||||
NS_COMPAT_CB(_passwdcompat_bad, "compat")
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
int rv, crv;
|
||||
|
@ -2345,7 +2345,7 @@ getpwent(void)
|
|||
NS_DNS_CB(_dns_getpwent, NULL)
|
||||
NS_NIS_CB(_nis_getpwent, NULL)
|
||||
NS_COMPAT_CB(_compat_getpwent, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
mutex_lock(&_pwmutex);
|
||||
|
@ -2366,7 +2366,7 @@ getpwent_r(struct passwd *pwd, char *buffer, size_t buflen,
|
|||
NS_DNS_CB(_dns_getpwent_r, NULL)
|
||||
NS_NIS_CB(_nis_getpwent_r, NULL)
|
||||
NS_COMPAT_CB(_compat_getpwent_r, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
_DIAGASSERT(pwd != NULL);
|
||||
|
@ -2400,7 +2400,7 @@ getpwnam(const char *name)
|
|||
NS_DNS_CB(_dns_getpwnam, NULL)
|
||||
NS_NIS_CB(_nis_getpwnam, NULL)
|
||||
NS_COMPAT_CB(_compat_getpwnam, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
mutex_lock(&_pwmutex);
|
||||
|
@ -2421,7 +2421,7 @@ getpwnam_r(const char *name, struct passwd *pwd, char *buffer, size_t buflen,
|
|||
NS_DNS_CB(_dns_getpwnam_r, NULL)
|
||||
NS_NIS_CB(_nis_getpwnam_r, NULL)
|
||||
NS_COMPAT_CB(_compat_getpwnam_r, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
_DIAGASSERT(name != NULL);
|
||||
|
@ -2455,7 +2455,7 @@ getpwuid(uid_t uid)
|
|||
NS_DNS_CB(_dns_getpwuid, NULL)
|
||||
NS_NIS_CB(_nis_getpwuid, NULL)
|
||||
NS_COMPAT_CB(_compat_getpwuid, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
mutex_lock(&_pwmutex);
|
||||
|
@ -2476,7 +2476,7 @@ getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t buflen,
|
|||
NS_DNS_CB(_dns_getpwuid_r, NULL)
|
||||
NS_NIS_CB(_nis_getpwuid_r, NULL)
|
||||
NS_COMPAT_CB(_compat_getpwuid_r, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
_DIAGASSERT(pwd != NULL);
|
||||
|
@ -2506,7 +2506,7 @@ endpwent(void)
|
|||
NS_DNS_CB(_dns_endpwent, NULL)
|
||||
NS_NIS_CB(_nis_endpwent, NULL)
|
||||
NS_COMPAT_CB(_compat_endpwent, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
mutex_lock(&_pwmutex);
|
||||
|
@ -2525,7 +2525,7 @@ setpassent(int stayopen)
|
|||
NS_DNS_CB(_dns_setpassent, NULL)
|
||||
NS_NIS_CB(_nis_setpassent, NULL)
|
||||
NS_COMPAT_CB(_compat_setpassent, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
int rv, retval;
|
||||
|
||||
|
@ -2545,7 +2545,7 @@ setpwent(void)
|
|||
NS_DNS_CB(_dns_setpwent, NULL)
|
||||
NS_NIS_CB(_nis_setpwent, NULL)
|
||||
NS_COMPAT_CB(_compat_setpwent, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
mutex_lock(&_pwmutex);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: getusershell.c,v 1.25 2005/11/29 03:11:59 christos Exp $ */
|
||||
/* $NetBSD: getusershell.c,v 1.26 2006/10/15 16:14:46 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2005 The NetBSD Foundation, Inc.
|
||||
|
@ -70,7 +70,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)getusershell.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: getusershell.c,v 1.25 2005/11/29 03:11:59 christos Exp $");
|
||||
__RCSID("$NetBSD: getusershell.c,v 1.26 2006/10/15 16:14:46 christos Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -481,7 +481,7 @@ endusershell(void)
|
|||
NS_FILES_CB(_files_endusershell, NULL)
|
||||
NS_DNS_CB(_dns_endusershell, NULL)
|
||||
NS_NIS_CB(_nis_endusershell, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
mutex_lock(&__shellmutex);
|
||||
|
@ -505,7 +505,7 @@ getusershell(void)
|
|||
NS_FILES_CB(_files_getusershell, NULL)
|
||||
NS_DNS_CB(_dns_getusershell, NULL)
|
||||
NS_NIS_CB(_nis_getusershell, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
mutex_lock(&__shellmutex);
|
||||
|
@ -538,7 +538,7 @@ setusershell(void)
|
|||
NS_FILES_CB(_files_setusershell, NULL)
|
||||
NS_DNS_CB(_dns_setusershell, NULL)
|
||||
NS_NIS_CB(_nis_setusershell, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
mutex_lock(&__shellmutex);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: randomid.c,v 1.11 2003/12/26 19:04:56 wiz Exp $ */
|
||||
/* $NetBSD: randomid.c,v 1.12 2006/10/15 16:14:46 christos Exp $ */
|
||||
/* $KAME: ip6_id.c,v 1.8 2003/09/06 13:41:06 itojun Exp $ */
|
||||
/* $OpenBSD: ip_id.c,v 1.6 2002/03/15 18:19:52 millert Exp $ */
|
||||
|
||||
|
@ -83,7 +83,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: randomid.c,v 1.11 2003/12/26 19:04:56 wiz Exp $");
|
||||
__RCSID("$NetBSD: randomid.c,v 1.12 2006/10/15 16:14:46 christos Exp $");
|
||||
#endif
|
||||
|
||||
#include "namespace.h"
|
||||
|
@ -165,7 +165,7 @@ static struct randomconf randomconf[] = {
|
|||
0, /* skip values */
|
||||
},
|
||||
{
|
||||
-1, /* termination */
|
||||
.rc_bits = -1, /* termination */
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: gmon.c,v 1.28 2006/10/04 21:23:56 christos Exp $ */
|
||||
/* $NetBSD: gmon.c,v 1.29 2006/10/15 16:14:46 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2003, 2004 Wasabi Systems, Inc.
|
||||
|
@ -69,7 +69,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)gmon.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: gmon.c,v 1.28 2006/10/04 21:23:56 christos Exp $");
|
||||
__RCSID("$NetBSD: gmon.c,v 1.29 2006/10/15 16:14:46 christos Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -90,7 +90,7 @@ __RCSID("$NetBSD: gmon.c,v 1.28 2006/10/04 21:23:56 christos Exp $");
|
|||
#include "extern.h"
|
||||
#include "reentrant.h"
|
||||
|
||||
struct gmonparam _gmonparam = { GMON_PROF_OFF };
|
||||
struct gmonparam _gmonparam = { .state = GMON_PROF_OFF };
|
||||
|
||||
#ifdef _REENTRANT
|
||||
struct gmonparam *_gmonfree;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: getaddrinfo.c,v 1.86 2006/10/14 21:45:29 christos Exp $ */
|
||||
/* $NetBSD: getaddrinfo.c,v 1.87 2006/10/15 16:14:46 christos Exp $ */
|
||||
/* $KAME: getaddrinfo.c,v 1.29 2000/08/31 17:26:57 itojun Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -55,7 +55,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: getaddrinfo.c,v 1.86 2006/10/14 21:45:29 christos Exp $");
|
||||
__RCSID("$NetBSD: getaddrinfo.c,v 1.87 2006/10/15 16:14:46 christos Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include "namespace.h"
|
||||
|
@ -171,7 +171,7 @@ static const struct explore explore[] = {
|
|||
static const ns_src default_dns_files[] = {
|
||||
{ NSSRC_FILES, NS_SUCCESS },
|
||||
{ NSSRC_DNS, NS_SUCCESS },
|
||||
{ 0 }
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
#define MAXPACKET (64*1024)
|
||||
|
@ -550,7 +550,7 @@ explore_fqdn(const struct addrinfo *pai, const char *hostname,
|
|||
NS_FILES_CB(_files_getaddrinfo, NULL)
|
||||
{ NSSRC_DNS, _dns_getaddrinfo, NULL }, /* force -DHESIOD */
|
||||
NS_NIS_CB(_yp_getaddrinfo, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
_DIAGASSERT(pai != NULL);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: gethnamaddr.c,v 1.70 2006/03/22 00:03:51 christos Exp $ */
|
||||
/* $NetBSD: gethnamaddr.c,v 1.71 2006/10/15 16:14:46 christos Exp $ */
|
||||
|
||||
/*
|
||||
* ++Copyright++ 1985, 1988, 1993
|
||||
|
@ -57,7 +57,7 @@
|
|||
static char sccsid[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93";
|
||||
static char rcsid[] = "Id: gethnamaddr.c,v 8.21 1997/06/01 20:34:37 vixie Exp ";
|
||||
#else
|
||||
__RCSID("$NetBSD: gethnamaddr.c,v 1.70 2006/03/22 00:03:51 christos Exp $");
|
||||
__RCSID("$NetBSD: gethnamaddr.c,v 1.71 2006/10/15 16:14:46 christos Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -168,7 +168,7 @@ static struct hostent *gethostbyname_internal(const char *, int, res_state);
|
|||
static const ns_src default_dns_files[] = {
|
||||
{ NSSRC_FILES, NS_SUCCESS },
|
||||
{ NSSRC_DNS, NS_SUCCESS },
|
||||
{ 0 }
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
|
||||
|
@ -455,9 +455,10 @@ getanswer(const querybuf *answer, int anslen, const char *qname, int qtype,
|
|||
continue;
|
||||
}
|
||||
if (hap >= &h_addr_ptrs[MAXADDRS-1]) {
|
||||
if (!toobig++)
|
||||
if (!toobig++) {
|
||||
dprintf("Too many addresses (%d)\n",
|
||||
res, MAXADDRS);
|
||||
}
|
||||
cp += n;
|
||||
continue;
|
||||
}
|
||||
|
@ -550,7 +551,7 @@ gethostbyname_internal(const char *name, int af, res_state res)
|
|||
NS_FILES_CB(_gethtbyname, NULL)
|
||||
{ NSSRC_DNS, _dns_gethtbyname, NULL }, /* force -DHESIOD */
|
||||
NS_NIS_CB(_yp_gethtbyname, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
_DIAGASSERT(name != NULL);
|
||||
|
@ -669,7 +670,7 @@ gethostbyaddr(const char *addr, /* XXX should have been def'd as u_char! */
|
|||
NS_FILES_CB(_gethtbyaddr, NULL)
|
||||
{ NSSRC_DNS, _dns_gethtbyaddr, NULL }, /* force -DHESIOD */
|
||||
NS_NIS_CB(_yp_gethtbyaddr, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
_DIAGASSERT(addr != NULL);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: getnameinfo.c,v 1.44 2006/08/24 15:39:11 christos Exp $ */
|
||||
/* $NetBSD: getnameinfo.c,v 1.45 2006/10/15 16:14:46 christos Exp $ */
|
||||
/* $KAME: getnameinfo.c,v 1.45 2000/09/25 22:43:56 itojun Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -47,7 +47,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: getnameinfo.c,v 1.44 2006/08/24 15:39:11 christos Exp $");
|
||||
__RCSID("$NetBSD: getnameinfo.c,v 1.45 2006/10/15 16:14:46 christos Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include "namespace.h"
|
||||
|
@ -85,7 +85,7 @@ static const struct afd {
|
|||
#endif
|
||||
{PF_INET, sizeof(struct in_addr), sizeof(struct sockaddr_in),
|
||||
offsetof(struct sockaddr_in, sin_addr)},
|
||||
{0, 0, 0},
|
||||
{0, 0, 0, 0},
|
||||
};
|
||||
|
||||
struct sockinet {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: getnetnamadr.c,v 1.34 2006/09/18 17:15:39 tsutsui Exp $ */
|
||||
/* $NetBSD: getnetnamadr.c,v 1.35 2006/10/15 16:14:46 christos Exp $ */
|
||||
|
||||
/* Copyright (c) 1993 Carlos Leandro and Rui Salgueiro
|
||||
* Dep. Matematica Universidade de Coimbra, Portugal, Europe
|
||||
|
@ -43,7 +43,7 @@ static char sccsid[] = "@(#)getnetbyaddr.c 8.1 (Berkeley) 6/4/93";
|
|||
static char sccsid_[] = "from getnetnamadr.c 1.4 (Coimbra) 93/06/03";
|
||||
static char rcsid[] = "Id: getnetnamadr.c,v 8.8 1997/06/01 20:34:37 vixie Exp ";
|
||||
#else
|
||||
__RCSID("$NetBSD: getnetnamadr.c,v 1.34 2006/09/18 17:15:39 tsutsui Exp $");
|
||||
__RCSID("$NetBSD: getnetnamadr.c,v 1.35 2006/10/15 16:14:46 christos Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -363,7 +363,7 @@ getnetbyaddr(uint32_t net, int net_type)
|
|||
NS_FILES_CB(_files_getnetbyaddr, NULL)
|
||||
{ NSSRC_DNS, _dns_getnetbyaddr, NULL }, /* force -DHESIOD */
|
||||
NS_NIS_CB(_yp_getnetbyaddr, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
np = NULL;
|
||||
|
@ -460,7 +460,7 @@ getnetbyname(const char *net)
|
|||
NS_FILES_CB(_files_getnetbyname, NULL)
|
||||
{ NSSRC_DNS, _dns_getnetbyname, NULL }, /* force -DHESIOD */
|
||||
NS_NIS_CB(_yp_getnetbyname, NULL)
|
||||
{ 0 }
|
||||
NS_NULL_CB
|
||||
};
|
||||
|
||||
_DIAGASSERT(net != NULL);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: nsdispatch.c,v 1.30 2005/11/29 03:11:59 christos Exp $ */
|
||||
/* $NetBSD: nsdispatch.c,v 1.31 2006/10/15 16:14:46 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998, 1999, 2004 The NetBSD Foundation, Inc.
|
||||
|
@ -70,7 +70,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: nsdispatch.c,v 1.30 2005/11/29 03:11:59 christos Exp $");
|
||||
__RCSID("$NetBSD: nsdispatch.c,v 1.31 2006/10/15 16:14:46 christos Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include "namespace.h"
|
||||
|
@ -110,37 +110,37 @@ __weak_alias(nsdispatch,_nsdispatch)
|
|||
*/
|
||||
const ns_src __nsdefaultsrc[] = {
|
||||
{ NSSRC_FILES, NS_SUCCESS },
|
||||
{ 0 },
|
||||
{ 0, 0 },
|
||||
};
|
||||
|
||||
const ns_src __nsdefaultcompat[] = {
|
||||
{ NSSRC_COMPAT, NS_SUCCESS },
|
||||
{ 0 }
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
const ns_src __nsdefaultcompat_forceall[] = {
|
||||
{ NSSRC_COMPAT, NS_SUCCESS | NS_FORCEALL },
|
||||
{ 0 }
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
const ns_src __nsdefaultfiles[] = {
|
||||
{ NSSRC_FILES, NS_SUCCESS },
|
||||
{ 0 },
|
||||
{ 0, 0 },
|
||||
};
|
||||
|
||||
const ns_src __nsdefaultfiles_forceall[] = {
|
||||
{ NSSRC_FILES, NS_SUCCESS | NS_FORCEALL },
|
||||
{ 0 },
|
||||
{ 0, 0 },
|
||||
};
|
||||
|
||||
const ns_src __nsdefaultnis[] = {
|
||||
{ NSSRC_NIS, NS_SUCCESS },
|
||||
{ 0 }
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
const ns_src __nsdefaultnis_forceall[] = {
|
||||
{ NSSRC_NIS, NS_SUCCESS | NS_FORCEALL },
|
||||
{ 0 }
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: xdr_mem.c,v 1.16 2003/03/16 15:42:22 christos Exp $ */
|
||||
/* $NetBSD: xdr_mem.c,v 1.17 2006/10/15 16:14:46 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
|
||||
|
@ -35,7 +35,7 @@
|
|||
static char *sccsid = "@(#)xdr_mem.c 1.19 87/08/11 Copyr 1984 Sun Micro";
|
||||
static char *sccsid = "@(#)xdr_mem.c 2.1 88/07/29 4.0 RPCSRC";
|
||||
#else
|
||||
__RCSID("$NetBSD: xdr_mem.c,v 1.16 2003/03/16 15:42:22 christos Exp $");
|
||||
__RCSID("$NetBSD: xdr_mem.c,v 1.17 2006/10/15 16:14:46 christos Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -86,7 +86,8 @@ static const struct xdr_ops xdrmem_ops_aligned = {
|
|||
xdrmem_getpos,
|
||||
xdrmem_setpos,
|
||||
xdrmem_inline_aligned,
|
||||
xdrmem_destroy
|
||||
xdrmem_destroy,
|
||||
NULL, /* xdrmem_control */
|
||||
};
|
||||
|
||||
static const struct xdr_ops xdrmem_ops_unaligned = {
|
||||
|
@ -97,7 +98,8 @@ static const struct xdr_ops xdrmem_ops_unaligned = {
|
|||
xdrmem_getpos,
|
||||
xdrmem_setpos,
|
||||
xdrmem_inline_unaligned,
|
||||
xdrmem_destroy
|
||||
xdrmem_destroy,
|
||||
NULL, /* xdrmem_control */
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: xdr_rec.c,v 1.26 2006/01/19 16:40:44 christos Exp $ */
|
||||
/* $NetBSD: xdr_rec.c,v 1.27 2006/10/15 16:14:46 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
|
||||
|
@ -35,7 +35,7 @@
|
|||
static char *sccsid = "@(#)xdr_rec.c 1.21 87/08/11 Copyr 1984 Sun Micro";
|
||||
static char *sccsid = "@(#)xdr_rec.c 2.2 88/08/01 4.0 RPCSRC";
|
||||
#else
|
||||
__RCSID("$NetBSD: xdr_rec.c,v 1.26 2006/01/19 16:40:44 christos Exp $");
|
||||
__RCSID("$NetBSD: xdr_rec.c,v 1.27 2006/10/15 16:14:46 christos Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -101,7 +101,8 @@ static const struct xdr_ops xdrrec_ops = {
|
|||
xdrrec_getpos,
|
||||
xdrrec_setpos,
|
||||
xdrrec_inline,
|
||||
xdrrec_destroy
|
||||
xdrrec_destroy,
|
||||
NULL, /* xdrrec_control */
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: xdr_stdio.c,v 1.16 2004/01/03 23:50:47 martin Exp $ */
|
||||
/* $NetBSD: xdr_stdio.c,v 1.17 2006/10/15 16:14:46 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
|
||||
|
@ -35,7 +35,7 @@
|
|||
static char *sccsid = "@(#)xdr_stdio.c 1.16 87/08/11 Copyr 1984 Sun Micro";
|
||||
static char *sccsid = "@(#)xdr_stdio.c 2.1 88/07/29 4.0 RPCSRC";
|
||||
#else
|
||||
__RCSID("$NetBSD: xdr_stdio.c,v 1.16 2004/01/03 23:50:47 martin Exp $");
|
||||
__RCSID("$NetBSD: xdr_stdio.c,v 1.17 2006/10/15 16:14:46 christos Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -80,7 +80,8 @@ static const struct xdr_ops xdrstdio_ops = {
|
|||
xdrstdio_getpos, /* get offset in the stream */
|
||||
xdrstdio_setpos, /* set offset in the stream */
|
||||
xdrstdio_inline, /* prime stream for inline macros */
|
||||
xdrstdio_destroy /* destroy stream */
|
||||
xdrstdio_destroy, /* destroy stream */
|
||||
NULL, /* xdrstdio_control */
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uuid_is_nil.c,v 1.2 2005/02/09 21:35:47 kleink Exp $ */
|
||||
/* $NetBSD: uuid_is_nil.c,v 1.3 2006/10/15 16:14:46 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 Marcel Moolenaar
|
||||
|
@ -31,7 +31,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: uuid_is_nil.c,v 1.2 2005/02/09 21:35:47 kleink Exp $");
|
||||
__RCSID("$NetBSD: uuid_is_nil.c,v 1.3 2006/10/15 16:14:46 christos Exp $");
|
||||
#endif
|
||||
|
||||
#include "namespace.h"
|
||||
|
@ -51,7 +51,7 @@ __weak_alias(uuid_is_nil,_uuid_is_nil)
|
|||
int32_t
|
||||
uuid_is_nil(uuid_t *u, uint32_t *status)
|
||||
{
|
||||
static const uuid_t nil = { 0 };
|
||||
static const uuid_t nil = { .time_low = 0 };
|
||||
|
||||
if (status)
|
||||
*status = uuid_s_ok;
|
||||
|
|
Loading…
Reference in New Issue