[ntp:bk-ntp-stable-send] BitKeeper diffs

Harlan Stenn stenn at deacon.udel.edu
Sun Oct 24 06:28:46 UTC 2010


#### ChangeSet ####
2010-10-24 06:21:08+00:00, davehart at shiny.ad.hartbrothers.com 
  fix bad "tos cohort" backport from -dev

==== ntpd/ntp_parser.c ====
2010-10-24 06:21:06+00:00, davehart at shiny.ad.hartbrothers.com +1 -1
  fix bad "tos cohort" backport from -dev

--- 1.57/ntpd/ntp_parser.c	2010-10-23 23:23:08 -04:00
+++ 1.58/ntpd/ntp_parser.c	2010-10-24 02:21:06 -04:00
@@ -2473,7 +2473,7 @@ yyreduce:
 
 /* Line 1464 of yacc.c  */
 #line 560 "ntp_parser.y"
-    { (yyval.Attr_val) = create_attr_ival((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Integer)); }
+    { (yyval.Attr_val) = create_attr_dval((yyvsp[(1) - (2)].Integer), (double)(yyvsp[(2) - (2)].Integer)); }
     break;
 
   case 92:

==== ntpd/ntp_parser.y ====
2010-10-24 06:21:06+00:00, davehart at shiny.ad.hartbrothers.com +1 -1
  fix bad "tos cohort" backport from -dev

--- 1.52/ntpd/ntp_parser.y	2010-10-23 23:23:09 -04:00
+++ 1.53/ntpd/ntp_parser.y	2010-10-24 02:21:06 -04:00
@@ -557,7 +557,7 @@ tos_option
 	|	tos_option_dbl_keyword number
 			{ $$ = create_attr_dval($1, $2); }
 	|	T_Cohort boolean
-			{ $$ = create_attr_ival($1, $2); }
+			{ $$ = create_attr_dval($1, (double)$2); }
 	;
 
 tos_option_int_keyword


More information about the bk-ntp-stable-send mailing list