Source-Changes-HG archive

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

[src/trunk]: src/tests/net/net revert part of previous that was wrong.



details:   https://anonhg.NetBSD.org/src/rev/4482ae7eabf2
branches:  trunk
changeset: 769983:4482ae7eabf2
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Sep 28 22:19:52 2011 +0000

description:
revert part of previous that was wrong.

diffstat:

 tests/net/net/t_unix.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6aea9e453de8 -r 4482ae7eabf2 tests/net/net/t_unix.c
--- a/tests/net/net/t_unix.c    Wed Sep 28 22:08:12 2011 +0000
+++ b/tests/net/net/t_unix.c    Wed Sep 28 22:19:52 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_unix.c,v 1.2 2011/09/28 22:08:12 christos Exp $      */
+/*     $NetBSD: t_unix.c,v 1.3 2011/09/28 22:19:52 christos Exp $      */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$Id: t_unix.c,v 1.2 2011/09/28 22:08:12 christos Exp $");
+__RCSID("$Id: t_unix.c,v 1.3 2011/09/28 22:19:52 christos Exp $");
 
 #include <stdio.h>
 #include <err.h>
@@ -59,7 +59,7 @@
 
        guard1 = guard2 = 's';
 
-       len = sizeof(len);
+       len = sizeof(sun);
        if (accept(s, (struct sockaddr *)&sun, &len) == -1)
                err(EXIT_FAILURE, "accept");
        if (guard1 != 's')



Home | Main Index | Thread Index | Old Index