Source-Changes-HG archive

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

[src/trunk]: src/tests/net/can Needs %zu fix for sizeof as well.



details:   https://anonhg.NetBSD.org/src/rev/b9081ff66ba4
branches:  trunk
changeset: 824217:b9081ff66ba4
user:      kre <kre%NetBSD.org@localhost>
date:      Sun May 28 13:55:07 2017 +0000

description:
Needs %zu fix for sizeof as well.

diffstat:

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

diffs (27 lines):

diff -r 2dd63ce68aa2 -r b9081ff66ba4 tests/net/can/h_canutils.c
--- a/tests/net/can/h_canutils.c        Sun May 28 11:15:59 2017 +0000
+++ b/tests/net/can/h_canutils.c        Sun May 28 13:55:07 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: h_canutils.c,v 1.2 2017/05/27 21:02:56 bouyer Exp $    */
+/*     $NetBSD: h_canutils.c,v 1.3 2017/05/28 13:55:07 kre Exp $       */
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: h_canutils.c,v 1.2 2017/05/27 21:02:56 bouyer Exp $");
+__RCSID("$NetBSD: h_canutils.c,v 1.3 2017/05/28 13:55:07 kre Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -124,7 +124,7 @@
        ATF_CHECK_MSG(sa->can_family == AF_CAN,
            "recvfrom provided wrong %d family", sa->can_family);       
         ATF_CHECK_MSG(salen == sizeof(struct sockaddr_can),
-            "recvfrom provided wrong size %d (!= %ld)", salen, sizeof(sa));
+            "recvfrom provided wrong size %d (!= %zu)", salen, sizeof(sa));
        return 0;
 }
 



Home | Main Index | Thread Index | Old Index