From: bodea Date: Mon, 14 Nov 2005 20:19:08 +0000 (+0000) Subject: access-list rule counters are unsigned X-Git-Tag: release_2_1_11~1 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/8cb67386de583a4f755e4e0f7835207771d4aa83?hp=e6208f516d2437f7effeee7305bd3ecae93e4c11 access-list rule counters are unsigned --- diff --git a/cli.c b/cli.c index c2e0c13..34038ef 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);