* sunrpc/auth_none.c (ops): Mark as const.
* nss/nsswitch.c (databases): Mark as const. Change name field into array. * nss/databases.def: Add warning.
This commit is contained in:
parent
cc2f0a2bb9
commit
3d50529df9
@ -1,5 +1,11 @@
|
||||
2005-12-20 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sunrpc/auth_none.c (ops): Mark as const.
|
||||
|
||||
* nss/nsswitch.c (databases): Mark as const. Change name field
|
||||
into array.
|
||||
* nss/databases.def: Add warning.
|
||||
|
||||
* resolv/res_hconf.c (arg_service_list): Reduce size of svcs and
|
||||
mark const.
|
||||
(cmd): Mark as const.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* List of all databases defined for the NSS in GNU C Library.
|
||||
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
||||
Copyright (C) 1996, 1997, 2005 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
||||
|
||||
@ -18,7 +18,8 @@
|
||||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA. */
|
||||
|
||||
/* This list must be kept sorted!!! */
|
||||
/* This list must be kept sorted!!! If any long name is added the
|
||||
field size for it must be increases. */
|
||||
|
||||
DEFINE_DATABASE (aliases)
|
||||
DEFINE_DATABASE (ethers)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004
|
||||
/* Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005
|
||||
Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
||||
@ -59,9 +59,9 @@ static service_library *nss_new_service (name_database *database,
|
||||
#undef DEFINE_DATABASE
|
||||
|
||||
/* Structure to map database name to variable. */
|
||||
static struct
|
||||
static const struct
|
||||
{
|
||||
const char *name;
|
||||
const char name[10];
|
||||
service_user **dbp;
|
||||
} databases[] =
|
||||
{
|
||||
|
@ -49,7 +49,7 @@ static bool_t authnone_marshal (AUTH *, XDR *);
|
||||
static bool_t authnone_validate (AUTH *, struct opaque_auth *);
|
||||
static bool_t authnone_refresh (AUTH *);
|
||||
|
||||
static struct auth_ops ops = {
|
||||
static const struct auth_ops ops = {
|
||||
authnone_verf,
|
||||
authnone_marshal,
|
||||
authnone_validate,
|
||||
@ -80,7 +80,7 @@ authnone_create_once (void)
|
||||
ap = &authnone_private;
|
||||
|
||||
ap->no_client.ah_cred = ap->no_client.ah_verf = _null_auth;
|
||||
ap->no_client.ah_ops = &ops;
|
||||
ap->no_client.ah_ops = (struct auth_ops *) &ops;
|
||||
xdrs = &xdr_stream;
|
||||
INTUSE(xdrmem_create) (xdrs, ap->marshalled_client,
|
||||
(u_int) MAX_MARSHAL_SIZE, XDR_ENCODE);
|
||||
@ -88,7 +88,7 @@ authnone_create_once (void)
|
||||
(void) INTUSE(xdr_opaque_auth) (xdrs, &ap->no_client.ah_verf);
|
||||
ap->mcnt = XDR_GETPOS (xdrs);
|
||||
XDR_DESTROY (xdrs);
|
||||
}
|
||||
}
|
||||
|
||||
AUTH *
|
||||
authnone_create (void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user