]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
ntpsim.c: add missing protypes and fix [CID 34], a nit
authorHarlan Stenn <stenn@ntp.org>
Tue, 30 Oct 2007 07:27:06 +0000 (02:27 -0500)
committerHarlan Stenn <stenn@ntp.org>
Tue, 30 Oct 2007 07:27:06 +0000 (02:27 -0500)
bk: 4726dcca6jKdYHPZicUzRnly2qf-Yw

ChangeLog
ntpd/ntpsim.c

index b0c2a80af3bcc4cb02621eb876ef09cbd4c4025e..c03d2551fd1416c6a02add7027f7e992a794d396 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+* ntpsim.c: add missing protypes and fix [CID 34], a nit.
 * Upgraded bison at UDel.
 * Update br-flock and flock-build machine lists.
 * [Bug 752] QoS: add parse/config handling code. 
index a2259319da2b1413a10243acc263331504ce14b6..4556f206c8d1339eec6fb1c95081354d5a69d232 100644 (file)
@@ -31,6 +31,8 @@ void (*event_ptr[]) (Event *) = {
 /* Define a function to compare two events to determine which one occurs first
  */
 
+int determine_event_ordering(Event *e1, Event *e2);
+
 int determine_event_ordering(Event *e1, Event *e2)
 {
     return (e1->time - e2->time);
@@ -39,6 +41,8 @@ int determine_event_ordering(Event *e1, Event *e2)
 /* Define a function to compare two received packets to determine which one
  * is received first
  */
+int determine_recv_buf_ordering(struct recvbuf *b1, struct recvbuf *b2);
+
 int determine_recv_buf_ordering(struct recvbuf *b1, struct recvbuf *b2)
 {
     double recv_time1, recv_time2;
@@ -73,6 +77,8 @@ void create_server_associations()
 
 
 /* Main Simulator Code */
+int ntpsim(int argc, char *argv[]);
+
 int ntpsim(int argc, char *argv[])
 {
     Event *curr_event;
@@ -286,6 +292,7 @@ int simulate_server(
     rbuf.receiver = receive;   /* Function to call to process the packet */
     rbuf.recv_length = LEN_PKT_NOMAC;
     rbuf.recv_pkt = xpkt;
+    rbuf.used = 1;
     
     memcpy(&rbuf.srcadr, serv_addr, sizeof(struct sockaddr_storage));
     memcpy(&rbuf.recv_srcadr, serv_addr, sizeof(struct sockaddr_storage));