]> git.saurik.com Git - apple/libinfo.git/blobdiff - rpc.subproj/pmap_getport.c
Libinfo-459.40.1.tar.gz
[apple/libinfo.git] / rpc.subproj / pmap_getport.c
index 2a0949226f5211e051a082b3d04a05262f8525cd..fd7e6e38cc3898e8c08cdfa4908a45d3217f3e00 100644 (file)
@@ -71,14 +71,13 @@ static char *rcsid = "$Id: pmap_getport.c,v 1.4 2004/12/19 22:45:44 zarzycki Exp
 #include <net/if.h>
 
 static struct timeval default_timeout = { 5, 0 };
-static struct timeval default_tottimeout = { 60, 0 };
 
 /*
  * Find the mapped port for program,version.
  * Calls the pmap service remotely to do the lookup.
  * Returns 0 if no map exists.
  */
-__private_extern__ u_short
+u_short
 pmap_getport_timeout(struct sockaddr_in *address, uint32_t program, uint32_t version, uint32_t protocol, struct timeval *timeout, struct timeval *totaltimeout)
 {
        u_short port;
@@ -128,15 +127,15 @@ pmap_getport_timeout(struct sockaddr_in *address, uint32_t program, uint32_t ver
 u_short
 pmap_getport(address, program, version, protocol)
 #ifdef __LP64__
-struct sockaddr_in *address;
-uint32_t program;
-uint32_t version;
-uint32_t protocol;
+       struct sockaddr_in *address;
+       uint32_t program;
+       uint32_t version;
+       uint32_t protocol;
 #else
-struct sockaddr_in *address;
-u_long program;
-u_long version;
-u_int protocol;
+       struct sockaddr_in *address;
+       u_long program;
+       u_long version;
+       u_int protocol;
 #endif
 {
        return pmap_getport_timeout(address, (uint32_t)program, (uint32_t)version, (uint32_t)protocol, NULL, NULL);