Source-Changes-HG archive

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

[src/trunk]: src/tests/net/can undo previous; we don't have any archs where s...



details:   https://anonhg.NetBSD.org/src/rev/15a42c7d46ee
branches:  trunk
changeset: 824221:15a42c7d46ee
user:      christos <christos%NetBSD.org@localhost>
date:      Sun May 28 14:53:13 2017 +0000

description:
undo previous; we don't have any archs where socklen_t != uint32_t.

diffstat:

 tests/net/can/t_can.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 8224421b0df8 -r 15a42c7d46ee tests/net/can/t_can.c
--- a/tests/net/can/t_can.c     Sun May 28 14:49:00 2017 +0000
+++ b/tests/net/can/t_can.c     Sun May 28 14:53:13 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_can.c,v 1.4 2017/05/28 14:49:00 christos Exp $       */
+/*     $NetBSD: t_can.c,v 1.5 2017/05/28 14:53:13 christos Exp $       */
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: t_can.c,v 1.4 2017/05/28 14:49:00 christos Exp $");
+__RCSID("$NetBSD: t_can.c,v 1.5 2017/05/28 14:53:13 christos Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -686,8 +686,8 @@
                ATF_CHECK_MSG(sa.can_family == AF_CAN,
                    "recvfrom provided wrong %d family", sa.can_family);
                ATF_CHECK_MSG(salen == sizeof(sa),
-                   "recvfrom provided wrong size %ju (!= %zu)",
-                   (uintmax_t)salen, sizeof(sa));
+                   "recvfrom provided wrong size %u (!= %zu)",
+                   salen, sizeof(sa));
                ATF_CHECK_MSG(sa.can_ifindex == ifindex,
                   "recvfrom provided wrong ifindex %d (!= %d)",
                    sa.can_ifindex, ifindex);



Home | Main Index | Thread Index | Old Index