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

Harlan Stenn stenn at whimsy.udel.edu
Sat Jun 23 04:32:13 UTC 2007


#### ChangeSet ####
2007-06-23 00:30:39-04:00, stenn at whimsy.udel.edu 
  Add more assertions (Calypso)

==== libntp/caljulian.c ====
2007-06-23 00:30:28-04:00, stenn at whimsy.udel.edu +3 -0
  Add more assertions (Calypso)

--- 1.6/libntp/caljulian.c	2004-02-07 12:47:52 -05:00
+++ 1.7/libntp/caljulian.c	2007-06-23 00:30:28 -04:00
@@ -7,6 +7,7 @@
 #include "ntp_calendar.h"
 #include "ntp_stdlib.h"
 #include "ntp_fp.h"
+#include "ntp_assert.h"
 
 #if 0
 /*
@@ -132,8 +133,10 @@ caljulian(
 	)
 {
 	struct tm *tm;
+	NTP_REQUIRE(jt != NULL);
 
 	tm = ntp2unix_tm(ntptime, 0);
+	NTP_INSIST(tm != NULL);
 
 	jt->hour = (u_char) tm->tm_hour;
 	jt->minute = (u_char) tm->tm_min;


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