Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/npf/npfctl don't print decimal and parse hex!
details: https://anonhg.NetBSD.org/src/rev/b191ba569410
branches: trunk
changeset: 353628:b191ba569410
user: christos <christos%NetBSD.org@localhost>
date: Sun May 14 21:38:23 2017 +0000
description:
don't print decimal and parse hex!
diffstat:
usr.sbin/npf/npfctl/npf_show.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 740b1be46b9c -r b191ba569410 usr.sbin/npf/npfctl/npf_show.c
--- a/usr.sbin/npf/npfctl/npf_show.c Sun May 14 17:28:46 2017 +0000
+++ b/usr.sbin/npf/npfctl/npf_show.c Sun May 14 21:38:23 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: npf_show.c,v 1.23 2017/01/29 00:18:15 christos Exp $ */
+/* $NetBSD: npf_show.c,v 1.24 2017/05/14 21:38:23 christos Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: npf_show.c,v 1.23 2017/01/29 00:18:15 christos Exp $");
+__RCSID("$NetBSD: npf_show.c,v 1.24 2017/05/14 21:38:23 christos Exp $");
#include <sys/socket.h>
#define __FAVOR_BSD
@@ -341,7 +341,7 @@
npfctl_print_id(npf_conf_info_t *ctx, nl_rule_t *rl)
{
uint64_t id = id = npf_rule_getid(rl);
- fprintf(ctx->fp, "# id=\"%" PRIu64 "\" ", id);
+ fprintf(ctx->fp, "# id=\"%" PRIx64 "\" ", id);
}
static void
Home |
Main Index |
Thread Index |
Old Index