diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-04-12 14:26:59 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-04-12 14:26:59 +0000 |
commit | 69eb085e352c4a2ce2742b3774e248665379d0ac (patch) | |
tree | 4a0af70535ef05316d03fa5af5ef65d197164fde /usr.sbin/bgpd/parse.y | |
parent | 4d56e55188bc767d8ef23495ddaae7a0d4cb944e (diff) |
Fix some yyerror messages. Ja ja, INT_MAX is to small... OK henning@
Diffstat (limited to 'usr.sbin/bgpd/parse.y')
-rw-r--r-- | usr.sbin/bgpd/parse.y | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index 2a860e7e555..0eddbd03158 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.156 2005/03/29 11:13:33 henning Exp $ */ +/* $OpenBSD: parse.y,v 1.157 2005/04/12 14:26:58 claudio Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -1136,7 +1136,7 @@ filter_set_opt : LOCALPREF number { } | LOCALPREF '+' number { if ($3 > INT_MAX) { - yyerror("metric to small: max %u", INT_MAX); + yyerror("localpref to big: max %u", INT_MAX); YYERROR; } if (($$ = calloc(1, sizeof(struct filter_set))) == NULL) @@ -1146,7 +1146,7 @@ filter_set_opt : LOCALPREF number { } | LOCALPREF '-' number { if ($3 > INT_MAX) { - yyerror("metric to small: min -%u", INT_MAX); + yyerror("localpref to small: min -%u", INT_MAX); YYERROR; } if (($$ = calloc(1, sizeof(struct filter_set))) == NULL) @@ -1162,7 +1162,7 @@ filter_set_opt : LOCALPREF number { } | MED '+' number { if ($3 > INT_MAX) { - yyerror("metric to small: max %u", INT_MAX); + yyerror("metric to big: max %u", INT_MAX); YYERROR; } if (($$ = calloc(1, sizeof(struct filter_set))) == NULL) @@ -1188,7 +1188,7 @@ filter_set_opt : LOCALPREF number { } | METRIC '+' number { if ($3 > INT_MAX) { - yyerror("metric to small: max %u", INT_MAX); + yyerror("metric to big: max %u", INT_MAX); YYERROR; } if (($$ = calloc(1, sizeof(struct filter_set))) == NULL) |