Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
rpcbind
0022-rpcinfo-remove-obsolete-function-clnt_com_...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0022-rpcinfo-remove-obsolete-function-clnt_com_create.patch of Package rpcbind
From a7b8fdf863eca0d992597ff853fd95cb4e375358 Mon Sep 17 00:00:00 2001 From: Olaf Kirch <okir@suse.de> Date: Mon, 20 Jan 2014 12:51:29 +0100 Subject: [PATCH 22/24] rpcinfo: remove obsolete function clnt_com_create Signed-off-by: Olaf Kirch <okir@suse.de> --- src/rpcinfo.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/src/rpcinfo.c b/src/rpcinfo.c index 3fea753..0da5628 100644 --- a/src/rpcinfo.c +++ b/src/rpcinfo.c @@ -115,8 +115,6 @@ struct rpcbdump_short #ifdef PORTMAP static void ip_ping (u_short, char *, int, char **); -static CLIENT *clnt_com_create (struct sockaddr_in *, u_long, u_long, int *, - char *); static void pmapdump (int, char **); static void get_inet_address (struct sockaddr_in *, char *); static CLIENT *ip_getclient(const char *hostname, rpcprog_t prognum, rpcvers_t versnum, const char *proto); @@ -357,40 +355,6 @@ local_rpcb (rpcprog_t prog, rpcvers_t vers) } #ifdef PORTMAP -static CLIENT * -clnt_com_create (addr, prog, vers, fdp, trans) - struct sockaddr_in *addr; - u_long prog; - u_long vers; - int *fdp; - char *trans; -{ - CLIENT *clnt; - - if (strcmp (trans, "tcp") == 0) - { - clnt = clnttcp_create (addr, prog, vers, fdp, 0, 0); - } - else - { - struct timeval to; - - to.tv_sec = 5; - to.tv_usec = 0; - clnt = clntudp_create (addr, prog, vers, to, fdp); - } - if (clnt == (CLIENT *) NULL) - { - clnt_pcreateerror ("rpcinfo"); - if (vers == MIN_VERS) - printf ("program %lu is not available\n", prog); - else - printf ("program %lu version %lu is not available\n", prog, vers); - exit (1); - } - return (clnt); -} - static enum clnt_stat ip_ping_one(client, vers) CLIENT *client; -- 1.7.12.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor