From f7ec2b61a40a4940defb1cfe082fe41765c1fc7e Mon Sep 17 00:00:00 2001 From: Brendan O'Dea Date: Mon, 14 Nov 2005 20:19:08 +0000 Subject: [PATCH] access-list rule counters are unsigned --- cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli.c b/cli.c index de36f0a..6c06454 100644 --- a/cli.c +++ b/cli.c @@ -2,7 +2,7 @@ // vim: sw=8 ts=8 char const *cvs_name = "$Name: $"; -char const *cvs_id_cli = "$Id: cli.c,v 1.67 2005-11-14 09:49:01 bodea Exp $"; +char const *cvs_id_cli = "$Id: cli.c,v 1.68 2005-11-14 20:19:08 bodea Exp $"; #include #include @@ -3069,7 +3069,7 @@ static int cmd_show_access_list(struct cli_def *cli, char *command, char **argv, { char const *r = show_access_list_rule(ip_filters[f].extended, rules); if (rules->counter) - cli_print(cli, "%s (%d match%s)", r, + cli_print(cli, "%s (%u match%s)", r, rules->counter, rules->counter > 1 ? "es" : ""); else cli_print(cli, "%s", r); -- 2.20.1