Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/net Use a better type in previous.



details:   https://anonhg.NetBSD.org/src/rev/3087a0d78f23
branches:  trunk
changeset: 480904:3087a0d78f23
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Sat Jan 22 23:36:17 2000 +0000

description:
Use a better type in previous.

diffstat:

 lib/libc/net/rcmd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 43f9a0168900 -r 3087a0d78f23 lib/libc/net/rcmd.c
--- a/lib/libc/net/rcmd.c       Sat Jan 22 22:53:59 2000 +0000
+++ b/lib/libc/net/rcmd.c       Sat Jan 22 23:36:17 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rcmd.c,v 1.35 2000/01/22 23:34:28 mycroft Exp $        */
+/*     $NetBSD: rcmd.c,v 1.36 2000/01/22 23:36:17 mycroft Exp $        */
 
 /*
  * Copyright (c) 1997 Matthew R. Green.
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)rcmd.c     8.3 (Berkeley) 3/26/94";
 #else
-__RCSID("$NetBSD: rcmd.c,v 1.35 2000/01/22 23:34:28 mycroft Exp $");
+__RCSID("$NetBSD: rcmd.c,v 1.36 2000/01/22 23:36:17 mycroft Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -483,7 +483,7 @@
 #endif
        for (;;) {
                *portp = htons((u_short)*alport);
-               if (bind(s, sa, (size_t)salen) >= 0)
+               if (bind(s, sa, (socklen_t)salen) >= 0)
                        return (s);
                if (errno != EADDRINUSE) {
                        (void)close(s);



Home | Main Index | Thread Index | Old Index