Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/usr.sbin/rpcbind Pull up version 1.6:



details:   https://anonhg.NetBSD.org/src/rev/40c22e2b0a56
branches:  netbsd-1-5
changeset: 488882:40c22e2b0a56
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Sat Aug 05 17:47:49 2000 +0000

description:
Pull up version 1.6:
        Do not check unitialized variables as error values. This is generally
        frowned upon, or so I hear.

diffstat:

 usr.sbin/rpcbind/rpcb_svc_com.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 20d41a76247d -r 40c22e2b0a56 usr.sbin/rpcbind/rpcb_svc_com.c
--- a/usr.sbin/rpcbind/rpcb_svc_com.c   Sat Aug 05 17:47:14 2000 +0000
+++ b/usr.sbin/rpcbind/rpcb_svc_com.c   Sat Aug 05 17:47:49 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rpcb_svc_com.c,v 1.1.2.1 2000/06/23 08:16:03 hannken Exp $     */
+/*     $NetBSD: rpcb_svc_com.c,v 1.1.2.2 2000/08/05 17:47:49 fvdl Exp $        */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -1199,7 +1199,7 @@
        struct rpc_err  reply_error;
        char            *buffer;
        struct finfo    *fi;
-       int             inlen, pos, len, res;
+       int             inlen, pos, len;
        struct r_rmtcall_args a;
        struct sockaddr_storage ss;
        socklen_t fromlen;
@@ -1215,10 +1215,10 @@
                inlen = recvfrom(fd, buffer, RPC_BUF_MAX, 0,
                            (struct sockaddr *)&ss, &fromlen);
        } while (inlen < 0 && errno == EINTR);
-       if (res < 0) {
+       if (inlen < 0) {
                if (debugging)
                        fprintf(stderr,
-       "handle_reply:  recvfrom returned %d, errno %d\n", res, errno);
+       "handle_reply:  recvfrom returned %d, errno %d\n", inlen, errno);
                goto done;
        }
 



Home | Main Index | Thread Index | Old Index