Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/faithd typo (sa_family must be sa_len)



details:   https://anonhg.NetBSD.org/src/rev/b2530ea286a1
branches:  trunk
changeset: 480009:b2530ea286a1
user:      itojun <itojun%NetBSD.org@localhost>
date:      Thu Dec 30 15:39:40 1999 +0000

description:
typo (sa_family must be sa_len)
NetBSD PR: 9084

diffstat:

 usr.sbin/faithd/faithd.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 1a42b3123c65 -r b2530ea286a1 usr.sbin/faithd/faithd.c
--- a/usr.sbin/faithd/faithd.c  Thu Dec 30 15:34:47 1999 +0000
+++ b/usr.sbin/faithd/faithd.c  Thu Dec 30 15:39:40 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: faithd.c,v 1.7 1999/12/20 16:22:41 itojun Exp $        */
+/*     $NetBSD: faithd.c,v 1.8 1999/12/30 15:39:40 itojun Exp $        */
 
 /*
  * Copyright (C) 1997 and 1998 WIDE Project.
@@ -463,7 +463,7 @@
        if (error == -1)
                exit_error("setsockopt(SO_SNDTIMEO): %s", ERRSTR);
 
-       error = connect(s_dst, sa4, sa4->sa_family);
+       error = connect(s_dst, sa4, sa4->sa_len);
        if (error == -1)
                exit_failure("connect: %s", ERRSTR);
 



Home | Main Index | Thread Index | Old Index