Module Name: src
Committed By: christos
Date: Wed Sep 28 22:08:12 UTC 2011
Modified Files:
src/tests/net/net: t_unix.c
Log Message:
fix error message
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 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.1 src/tests/net/net/t_unix.c:1.2
--- src/tests/net/net/t_unix.c:1.1 Wed Sep 28 12:13:03 2011
+++ src/tests/net/net/t_unix.c Wed Sep 28 18:08:12 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_unix.c,v 1.1 2011/09/28 16:13:03 christos Exp $ */
+/* $NetBSD: t_unix.c,v 1.2 2011/09/28 22:08:12 christos Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$Id: t_unix.c,v 1.1 2011/09/28 16:13:03 christos Exp $");
+__RCSID("$Id: t_unix.c,v 1.2 2011/09/28 22:08:12 christos Exp $");
#include <stdio.h>
#include <err.h>
@@ -59,9 +59,9 @@ acc(int s)
guard1 = guard2 = 's';
- len = sizeof(sun);
+ len = sizeof(len);
if (accept(s, (struct sockaddr *)&sun, &len) == -1)
- err(EXIT_FAILURE, "connect");
+ err(EXIT_FAILURE, "accept");
if (guard1 != 's')
errx(EXIT_FAILURE, "guard1 = '%c'", guard1);
if (guard2 != 's')