diff options
| author | Jason Evans <jasone@FreeBSD.org> | 2000-01-12 09:23:48 +0000 |
|---|---|---|
| committer | Jason Evans <jasone@FreeBSD.org> | 2000-01-12 09:23:48 +0000 |
| commit | 929273386f6e688c008b15fd24932df2ed7e7172 (patch) | |
| tree | b3edfb3b0b6bdadce3b9cf019cabf1218f08038d /lib/libc/rpc/auth_time.c | |
| parent | f3d5d34b459fcd295a618227c37e2bacae1cdf67 (diff) | |
Notes
Diffstat (limited to 'lib/libc/rpc/auth_time.c')
| -rw-r--r-- | lib/libc/rpc/auth_time.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/rpc/auth_time.c b/lib/libc/rpc/auth_time.c index 3128e6d4c4fb..47f5212fe326 100644 --- a/lib/libc/rpc/auth_time.c +++ b/lib/libc/rpc/auth_time.c @@ -28,6 +28,8 @@ * * NOTE: This code has had the crap beaten out it in order to convert * it from TI-RPC back to TD-RPC for use on FreeBSD. + * + * $FreeBSD$ */ #include <stdio.h> #include <syslog.h> @@ -435,7 +437,7 @@ __rpc_get_time_offset(td, srv, thost, uaddr, netid) msg("alarm caught it, must be unreachable."); goto error; } - res = read(s, (char *)&thetime, sizeof(thetime)); + res = _libc_read(s, (char *)&thetime, sizeof(thetime)); if (res != sizeof(thetime)) { if (saw_alarm) msg("timed out TCP call."); @@ -447,7 +449,7 @@ __rpc_get_time_offset(td, srv, thost, uaddr, netid) time_valid = 1; } save = errno; - (void) close(s); + (void)_libc_close(s); errno = save; s = RPC_ANYSOCK; @@ -466,7 +468,7 @@ error: */ if (s != RPC_ANYSOCK) - (void) close(s); + (void)_libc_close(s); if (clnt != NULL) clnt_destroy(clnt); |
