Module Name:    src
Committed By:   christos
Date:           Wed Sep 28 22:19:52 UTC 2011

Modified Files:
        src/tests/net/net: t_unix.c

Log Message:
revert part of previous that was wrong.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/net/net/t_unix.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/net/net/t_unix.c
diff -u src/tests/net/net/t_unix.c:1.2 src/tests/net/net/t_unix.c:1.3
--- src/tests/net/net/t_unix.c:1.2	Wed Sep 28 18:08:12 2011
+++ src/tests/net/net/t_unix.c	Wed Sep 28 18:19:52 2011
@@ -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 @@ acc(int s)
 
 	guard1 = guard2 = 's';
 
-	len = sizeof(len);
+	len = sizeof(sun);
 	if (accept(s, (struct sockaddr *)&sun, &len) == -1)
 		err(EXIT_FAILURE, "accept");
 	if (guard1 != 's')

Reply via email to