[Nagiosplug-devel] Compile error at check_ntp.c

Benoit DOLEZ bdolez at ant-computing.com
Wed Nov 8 21:21:51 CET 2006


ref : http://sourceforge.net/mailarchive/message.php?msg_id=37120800

In reply to the open problem about check_ntp.c by Florian Gleixner
(subject: Patch for check_oracle.sh and compile error at check_ntp.c),
check this patch :

---------------------------------------------------------------------
--- nagios-plugins-1.4.5/plugins/check_ntp.c    2006-10-19 
00:25:16.000000000 +0000
+++ nagios-plugins-1.4.5-flx0.1/plugins/check_ntp.c     2006-11-08 
18:21:42.000000000 +0000
@@ -191,7 +191,7 @@
         do{ if(!t.tv_usec && !t.tv_sec) n=0x0UL; \
                 else { \
                         L32(n)=htonl(t.tv_sec + EPOCHDIFF); \
-                       R32(n)=htonl((4294.967296*t.tv_usec)+.5); \
+ 
R32(n)=htonl((uint64_t)((4294.967296*t.tv_usec)+.5)); \
                 } \
         } while(0)

--------------------------------------------------------------------

Benoit DOLEZ
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_ntp-compile-error.diff
Type: text/x-patch
Size: 516 bytes
Desc: not available
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20061108/c7f0ad35/attachment.bin>


More information about the Devel mailing list