diff options
author | Esben Norby <norby@cvs.openbsd.org> | 2005-02-02 19:47:21 +0000 |
---|---|---|
committer | Esben Norby <norby@cvs.openbsd.org> | 2005-02-02 19:47:21 +0000 |
commit | 217f8ac246d6f8d5e5840a8a01e4f5f0a13cba4c (patch) | |
tree | fa76adaf782eac0b6254e7ec95d9016c6b0496e1 /usr.sbin | |
parent | 1f16acd059c0d6258c2f117e868197975a59c973 (diff) |
Typo in constant.
ok claudio@ henning@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ospfd/ospf.h | 8 | ||||
-rw-r--r-- | usr.sbin/ospfd/parse.y | 16 |
2 files changed, 12 insertions, 12 deletions
diff --git a/usr.sbin/ospfd/ospf.h b/usr.sbin/ospfd/ospf.h index 8b8f4ee77a1..479e0f85b4b 100644 --- a/usr.sbin/ospfd/ospf.h +++ b/usr.sbin/ospfd/ospf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ospf.h,v 1.3 2005/02/01 21:15:40 norby Exp $ */ +/* $OpenBSD: ospf.h,v 1.4 2005/02/02 19:47:20 norby Exp $ */ /* * Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org> @@ -52,9 +52,9 @@ #define MIN_RXMT_INTERVAL 5 #define MAX_RXMT_INTERVAL 3600 -#define DEFAULT_TRANSIT_DELAY 1 -#define MIN_TRANSIT_DELAY 1 -#define MAX_TRANSIT_DELAY 3600 +#define DEFAULT_TRANSMIT_DELAY 1 +#define MIN_TRANSMIT_DELAY 1 +#define MAX_TRANSMIT_DELAY 3600 #define DEFAULT_ADJ_TMOUT 60 /* XXX sane value? */ diff --git a/usr.sbin/ospfd/parse.y b/usr.sbin/ospfd/parse.y index 8654a4ce8b0..40bc6facb03 100644 --- a/usr.sbin/ospfd/parse.y +++ b/usr.sbin/ospfd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.2 2005/01/28 17:53:33 norby Exp $ */ +/* $OpenBSD: parse.y,v 1.3 2005/02/02 19:47:20 norby Exp $ */ /* * Copyright (c) 2004 Esben Norby <norby@openbsd.org> @@ -191,9 +191,9 @@ conf_main : METRIC number { defaults.dead_interval = $2; } | TRANSMITDELAY number { - if ($2 < MIN_TRANSIT_DELAY || $2 > MAX_TRANSIT_DELAY) { + if ($2 < MIN_TRANSMIT_DELAY || $2 > MAX_TRANSMIT_DELAY) { yyerror("transfer-delay out of range (%d-%d)", - MIN_TRANSIT_DELAY, MAX_TRANSIT_DELAY); + MIN_TRANSMIT_DELAY, MAX_TRANSMIT_DELAY); YYERROR; } defaults.transfer_delay = $2; @@ -311,9 +311,9 @@ areaoptsl : interface nl area->dead_interval = $2; } | TRANSMITDELAY number nl { - if ($2 < MIN_TRANSIT_DELAY || $2 > MAX_TRANSIT_DELAY) { + if ($2 < MIN_TRANSMIT_DELAY || $2 > MAX_TRANSMIT_DELAY) { yyerror("transfer-delay out of range (%d-%d)", - MIN_TRANSIT_DELAY, MAX_TRANSIT_DELAY); + MIN_TRANSMIT_DELAY, MAX_TRANSMIT_DELAY); YYERROR; } area->transfer_delay = $2; @@ -394,9 +394,9 @@ interfaceoptsl : authkey nl iface->dead_interval = $2; } | TRANSMITDELAY number nl { - if ($2 < MIN_TRANSIT_DELAY || $2 > MAX_TRANSIT_DELAY) { + if ($2 < MIN_TRANSMIT_DELAY || $2 > MAX_TRANSMIT_DELAY) { yyerror("transfer-delay out of range (%d-%d)", - MIN_TRANSIT_DELAY, MAX_TRANSIT_DELAY); + MIN_TRANSMIT_DELAY, MAX_TRANSMIT_DELAY); YYERROR; } iface->transfer_delay = $2; @@ -682,7 +682,7 @@ parse_config(char *filename, int opts) } defaults.dead_interval = DEFAULT_RTR_DEAD_TIME; - defaults.transfer_delay = DEFAULT_TRANSIT_DELAY; + defaults.transfer_delay = DEFAULT_TRANSMIT_DELAY; defaults.hello_interval = DEFAULT_HELLO_INTERVAL; defaults.rxmt_interval = DEFAULT_RXMT_INTERVAL; defaults.metric = DEFAULT_METRIC; |