Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/ldpd fix the build; ssize_t is %zd not %lu



details:   https://anonhg.NetBSD.org/src/rev/ac0d709f4d61
branches:  trunk
changeset: 782655:ac0d709f4d61
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Nov 12 22:51:42 2012 +0000

description:
fix the build; ssize_t is %zd not %lu

diffstat:

 usr.sbin/ldpd/socketops.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r d0d6fa2894d7 -r ac0d709f4d61 usr.sbin/ldpd/socketops.c
--- a/usr.sbin/ldpd/socketops.c Mon Nov 12 22:46:59 2012 +0000
+++ b/usr.sbin/ldpd/socketops.c Mon Nov 12 22:51:42 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: socketops.c,v 1.12 2012/11/12 18:39:00 kefren Exp $ */
+/* $NetBSD: socketops.c,v 1.13 2012/11/12 22:51:42 christos Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -436,7 +436,7 @@
                if (sb < (ssize_t)(IPV4_HELLO_MSG_SIZE))
                    fatalp("send: %s", strerror(errno));
                else
-                   debugp("Sent (IP4) %lu bytes on %s"
+                   debugp("Sent (IP4) %zd bytes on %s"
                        "(PDU: %d, Hello TLV: %d, CH: %d, TR: %d)\n",
                        sb, ifb->ifa_name,
                        ntohs(spdu->length), ntohs(t->length),



Home | Main Index | Thread Index | Old Index