From ee48c623f2d55d2b9de3d65f1cef398ca54ee77f Mon Sep 17 00:00:00 2001 From: rmind Date: Mon, 9 Jan 2012 01:47:09 +0000 Subject: [PATCH] npfctl_ncgen_putptr: use correct format for size_t. --- usr.sbin/npf/npfctl/npf_ncgen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/npf/npfctl/npf_ncgen.c b/usr.sbin/npf/npfctl/npf_ncgen.c index 6ce335bce2ee..d720e88547d3 100644 --- a/usr.sbin/npf/npfctl/npf_ncgen.c +++ b/usr.sbin/npf/npfctl/npf_ncgen.c @@ -1,4 +1,4 @@ -/* $NetBSD: npf_ncgen.c,v 1.6 2012/01/08 21:34:21 rmind Exp $ */ +/* $NetBSD: npf_ncgen.c,v 1.7 2012/01/09 01:47:09 rmind Exp $ */ /*- * Copyright (c) 2009-2012 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ */ #include -__RCSID("$NetBSD: npf_ncgen.c,v 1.6 2012/01/08 21:34:21 rmind Exp $"); +__RCSID("$NetBSD: npf_ncgen.c,v 1.7 2012/01/09 01:47:09 rmind Exp $"); #include #include @@ -108,7 +108,7 @@ npfctl_ncgen_putptr(nc_ctx_t *ctx, void *nc) if ((ptrdiff_t)ctx->nc_expected != diff) { errx(EXIT_FAILURE, "unexpected n-code fragment size " - "(expected words %lu, diff %td)", ctx->nc_expected, diff); + "(expected words %zu, diff %td)", ctx->nc_expected, diff); } ctx->nc_expected = 0; ctx->nc_iptr = nc;