Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/rpc fix a simple bug that prevents svc_tli_create t...



details:   https://anonhg.NetBSD.org/src/rev/7e6e289b77ca
branches:  trunk
changeset: 547120:7e6e289b77ca
user:      yamt <yamt%NetBSD.org@localhost>
date:      Tue May 13 11:57:21 2003 +0000

description:
fix a simple bug that prevents svc_tli_create to bind to the address
specified by caller.

diffstat:

 lib/libc/rpc/svc_generic.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 8a695f9cf592 -r 7e6e289b77ca lib/libc/rpc/svc_generic.c
--- a/lib/libc/rpc/svc_generic.c        Tue May 13 11:45:52 2003 +0000
+++ b/lib/libc/rpc/svc_generic.c        Tue May 13 11:57:21 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: svc_generic.c,v 1.5 2003/01/18 11:29:06 thorpej Exp $  */
+/*     $NetBSD: svc_generic.c,v 1.6 2003/05/13 11:57:21 yamt Exp $     */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -252,7 +252,7 @@
                        listen(fd, SOMAXCONN);
                } else {
                        if (bind(fd,
-                           (struct sockaddr *)(void *)&bindaddr->addr.buf,
+                           (struct sockaddr *)bindaddr->addr.buf,
                            (socklen_t)si.si_alen) < 0) {
                                warnx(
                "svc_tli_create: could not bind to requested address");



Home | Main Index | Thread Index | Old Index