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

Harlan Stenn stenn at whimsy.udel.edu
Sat Jun 23 03:53:09 UTC 2007


#### ChangeSet ####
2007-06-22 23:51:03-04:00, stenn at whimsy.udel.edu 
  Use emalloc() instead of malloc() in refclock_datum.c (Calypso).

==== ChangeLog ====
2007-06-22 23:50:51-04:00, stenn at whimsy.udel.edu +1 -0
  Use emalloc() instead of malloc() in refclock_datum.c (Calypso).

--- 1.75/ChangeLog	2007-06-22 02:11:16 -04:00
+++ 1.76/ChangeLog	2007-06-22 23:50:51 -04:00
@@ -1,3 +1,4 @@
+* Use emalloc() instead of malloc() in refclock_datum.c (Calypso).
 * Start using 'design by contract' assertions.
 * Allow null driftfile.
 * leap second infrastructure fixes from Dave Mills.

==== ntpd/refclock_datum.c ====
2007-06-22 23:50:52-04:00, stenn at whimsy.udel.edu +2 -2
  Use emalloc() instead of malloc() in refclock_datum.c (Calypso).

--- 1.10/ntpd/refclock_datum.c	2007-01-03 16:40:07 -05:00
+++ 1.11/ntpd/refclock_datum.c	2007-06-22 23:50:52 -04:00
@@ -259,13 +259,13 @@ datum_pts_start(
 	*/
 
 	temp_datum_pts_unit = (struct datum_pts_unit **)
-		malloc((nunits+1)*sizeof(struct datum_pts_unit *));
+		emalloc((nunits+1)*sizeof(struct datum_pts_unit *));
 	if (nunits > 0) memcpy(temp_datum_pts_unit, datum_pts_unit,
 			       nunits*sizeof(struct datum_pts_unit *));
 	free(datum_pts_unit);
 	datum_pts_unit = temp_datum_pts_unit;
 	datum_pts_unit[nunits] = (struct datum_pts_unit *)
-		malloc(sizeof(struct datum_pts_unit));
+		emalloc(sizeof(struct datum_pts_unit));
 	datum_pts = datum_pts_unit[nunits];
 
 	datum_pts->unit = unit;	/* set my unit id */


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