Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
Diff: udp/ntp/ntpserver.c
- Revision:
- 134:3aa1bc602b19
- Parent:
- 125:8c84daac38ab
- Child:
- 138:5ff0c7069300
--- a/udp/ntp/ntpserver.c	Wed Mar 20 11:20:44 2019 +0000
+++ b/udp/ntp/ntpserver.c	Fri Mar 22 08:07:59 2019 +0000
@@ -1,11 +1,11 @@
 #include <stdint.h>
+#include <stdlib.h>
 
 #include "clk.h"
 #include "clkgov.h"
 #include "clktime.h"
 #include "clkutc.h"
 #include "ntptimestamp.h"
-#include "clkutc.h"
 #include "ntp.h"
 #include "action.h"
 #include "log.h"
@@ -73,7 +73,7 @@
         if (NetTraceStack) traceback();
         NtpLogHeader(pHeaderRx);
     }
-    
+
     uint64_t refNtp    = getRefNtp();
     uint64_t nowNtp    = NtpTimeStampFromClkTime(ClkTimeGet()); //use the costly time at this instant
     int      stratum   = getStratum();