From owner-svn-src-stable@freebsd.org Sat Dec 3 17:10:39 2016 Return-Path: Delivered-To: svn-src-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7FF58C6594C; Sat, 3 Dec 2016 17:10:39 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5AA771805; Sat, 3 Dec 2016 17:10:39 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uB3HAcD2007213; Sat, 3 Dec 2016 17:10:38 GMT (envelope-from ngie@FreeBSD.org) Received: (from ngie@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uB3HAc5b007208; Sat, 3 Dec 2016 17:10:38 GMT (envelope-from ngie@FreeBSD.org) Message-Id: <201612031710.uB3HAc5b007208@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ngie set sender to ngie@FreeBSD.org using -f From: Ngie Cooper Date: Sat, 3 Dec 2016 17:10:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r309484 - stable/10/lib/libc/rpc X-SVN-Group: stable-10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2016 17:10:39 -0000 Author: ngie Date: Sat Dec 3 17:10:37 2016 New Revision: 309484 URL: https://svnweb.freebsd.org/changeset/base/309484 Log: MFC r287350: r287350 (by rodrigc): Use ANSI C prototypes. Eliminates gcc 4.9 warnings. Modified: stable/10/lib/libc/rpc/auth_des.c stable/10/lib/libc/rpc/auth_none.c stable/10/lib/libc/rpc/rpcb_clnt.c stable/10/lib/libc/rpc/rpcdname.c stable/10/lib/libc/rpc/svc_auth_des.c Directory Properties: stable/10/ (props changed) Modified: stable/10/lib/libc/rpc/auth_des.c ============================================================================== --- stable/10/lib/libc/rpc/auth_des.c Sat Dec 3 17:10:04 2016 (r309483) +++ stable/10/lib/libc/rpc/auth_des.c Sat Dec 3 17:10:37 2016 (r309484) @@ -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 **); Modified: stable/10/lib/libc/rpc/auth_none.c ============================================================================== --- stable/10/lib/libc/rpc/auth_none.c Sat Dec 3 17:10:04 2016 (r309483) +++ stable/10/lib/libc/rpc/auth_none.c Sat Dec 3 17:10:37 2016 (r309484) @@ -65,9 +65,9 @@ static bool_t authnone_validate (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; Modified: stable/10/lib/libc/rpc/rpcb_clnt.c ============================================================================== --- stable/10/lib/libc/rpc/rpcb_clnt.c Sat Dec 3 17:10:04 2016 (r309483) +++ stable/10/lib/libc/rpc/rpcb_clnt.c Sat Dec 3 17:10:37 2016 (r309484) @@ -661,7 +661,7 @@ got_entry(relp, nconf) * local transport. */ static bool_t -__rpcbind_is_up() +__rpcbind_is_up(void) { struct netconfig *nconf; struct sockaddr_un sun; Modified: stable/10/lib/libc/rpc/rpcdname.c ============================================================================== --- stable/10/lib/libc/rpc/rpcdname.c Sat Dec 3 17:10:04 2016 (r309483) +++ stable/10/lib/libc/rpc/rpcdname.c Sat Dec 3 17:10:37 2016 (r309484) @@ -46,7 +46,7 @@ __FBSDID("$FreeBSD$"); static char *default_domain = 0; static char * -get_default_domain() +get_default_domain(void) { char temp[256]; Modified: stable/10/lib/libc/rpc/svc_auth_des.c ============================================================================== --- stable/10/lib/libc/rpc/svc_auth_des.c Sat Dec 3 17:10:04 2016 (r309483) +++ stable/10/lib/libc/rpc/svc_auth_des.c Sat Dec 3 17:10:37 2016 (r309484) @@ -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 @@ -355,7 +355,7 @@ _svcauth_des(rqst, msg) * Initialize the cache */ static void -cache_init() +cache_init(void) { int i; @@ -378,7 +378,7 @@ cache_init() * Find the lru victim */ static short -cache_victim() +cache_victim(void) { return (authdes_lru[AUTHDES_CACHESZ-1]); }