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

Harlan Stenn stenn at deacon.udel.edu
Fri Jun 22 05:18:31 UTC 2007


#### ChangeSet ####
2007-06-22 01:17:17-04:00, stenn at deacon.udel.edu 
  Start using 'design by contract' assertions

==== ntpd/ntp_io.c ====
2007-06-22 01:17:11-04:00, stenn at deacon.udel.edu +3 -0
  Start using 'design by contract' assertions

--- 1.254/ntpd/ntp_io.c	2007-06-15 19:36:39 -04:00
+++ 1.255/ntpd/ntp_io.c	2007-06-22 01:17:11 -04:00
@@ -16,6 +16,7 @@
 #include "ntp_request.h"
 #include "ntp.h"
 #include "ntp_unixtime.h"
+#include "ntp_assert.h"
 
 /* Don't include ISC's version of IPv6 variables and structures */
 #define ISC_IPV6_H 1
@@ -3619,6 +3620,8 @@ kill_asyncio(int startfd)
 static void
 add_fd_to_list(SOCKET fd, enum desc_type type) {
 	vsock_t *lsock = (vsock_t *)malloc(sizeof(vsock_t));
+
+	NTP_INSIST(lsock != NULL);
 	lsock->fd = fd;
 	lsock->type = type;
 


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