Module Name:    src
Committed By:   rmind
Date:           Mon Jan  9 01:47:09 UTC 2012

Modified Files:
        src/usr.sbin/npf/npfctl: npf_ncgen.c

Log Message:
npfctl_ncgen_putptr: use correct format for size_t.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/npf/npfctl/npf_ncgen.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/npf/npfctl/npf_ncgen.c
diff -u src/usr.sbin/npf/npfctl/npf_ncgen.c:1.6 src/usr.sbin/npf/npfctl/npf_ncgen.c:1.7
--- src/usr.sbin/npf/npfctl/npf_ncgen.c:1.6	Sun Jan  8 21:34:21 2012
+++ src/usr.sbin/npf/npfctl/npf_ncgen.c	Mon Jan  9 01:47:09 2012
@@ -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 <sys/cdefs.h>
-__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 <stdlib.h>
 #include <stddef.h>
@@ -108,7 +108,7 @@ npfctl_ncgen_putptr(nc_ctx_t *ctx, void 
 
 	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;

Reply via email to