Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/net/net fix error message
details: https://anonhg.NetBSD.org/src/rev/6aea9e453de8
branches: trunk
changeset: 769982:6aea9e453de8
user: christos <christos%NetBSD.org@localhost>
date: Wed Sep 28 22:08:12 2011 +0000
description:
fix error message
diffstat:
tests/net/net/t_unix.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 949a66a88f66 -r 6aea9e453de8 tests/net/net/t_unix.c
--- a/tests/net/net/t_unix.c Wed Sep 28 17:27:21 2011 +0000
+++ b/tests/net/net/t_unix.c Wed Sep 28 22:08:12 2011 +0000
@@ -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 @@
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')
Home |
Main Index |
Thread Index |
Old Index