1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-16 15:11:52 +00:00

Use ANSI C prototypes.

Eliminates gcc 4.9 warnings.
This commit is contained in:
Craig Rodrigues 2015-09-01 08:34:44 +00:00
parent 27a1ccfc19
commit 7760154342
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=287350
5 changed files with 12 additions and 12 deletions

View File

@ -69,7 +69,7 @@ __FBSDID("$FreeBSD$");
extern bool_t xdr_authdes_cred( XDR *, struct authdes_cred *);
extern bool_t xdr_authdes_verf( XDR *, struct authdes_verf *);
extern int key_encryptsession_pk();
extern int key_encryptsession_pk(char *, netobj *, des_block *);
extern bool_t __rpc_get_time_offset(struct timeval *, nis_server *, char *,
char **, char **);

View File

@ -65,9 +65,9 @@ static bool_t authnone_validate (AUTH *, struct opaque_auth *);
static bool_t authnone_refresh (AUTH *, void *);
static void authnone_destroy (AUTH *);
extern bool_t xdr_opaque_auth();
extern bool_t xdr_opaque_auth(XDR *, struct opaque_auth *);
static struct auth_ops *authnone_ops();
static struct auth_ops *authnone_ops(void);
static struct authnone_private {
AUTH no_client;
@ -76,7 +76,7 @@ static struct authnone_private {
} *authnone_private;
AUTH *
authnone_create()
authnone_create(void)
{
struct authnone_private *ap = authnone_private;
XDR xdr_stream;
@ -156,7 +156,7 @@ authnone_destroy(AUTH *client)
}
static struct auth_ops *
authnone_ops()
authnone_ops(void)
{
static struct auth_ops ops;

View File

@ -655,7 +655,7 @@ got_entry(rpcb_entry_list_ptr relp, const struct netconfig *nconf)
* local transport.
*/
static bool_t
__rpcbind_is_up()
__rpcbind_is_up(void)
{
struct netconfig *nconf;
struct sockaddr_un sun;

View File

@ -46,7 +46,7 @@ __FBSDID("$FreeBSD$");
static char *default_domain = 0;
static char *
get_default_domain()
get_default_domain(void)
{
char temp[256];

View File

@ -90,11 +90,11 @@ struct cache_entry {
static struct cache_entry *authdes_cache/* [AUTHDES_CACHESZ] */;
static short *authdes_lru/* [AUTHDES_CACHESZ] */;
static void cache_init(); /* initialize the cache */
static short cache_spot(); /* find an entry in the cache */
static void cache_init(void); /* initialize the cache */
static short cache_spot(des_block *, char *, struct timeval *); /* find an entry in the cache */
static void cache_ref(short sid); /* note that sid was ref'd */
static void invalidate(); /* invalidate entry in cache */
static void invalidate(char *); /* invalidate entry in cache */
/*
* cache statistics
@ -353,7 +353,7 @@ _svcauth_des(struct svc_req *rqst, struct rpc_msg *msg)
* Initialize the cache
*/
static void
cache_init()
cache_init(void)
{
int i;
@ -376,7 +376,7 @@ cache_init()
* Find the lru victim
*/
static short
cache_victim()
cache_victim(void)
{
return (authdes_lru[AUTHDES_CACHESZ-1]);
}