[Nagiosplug-devel] Patch for check_oracle.sh and compile error at check_ntp.c

Benoit DOLEZ bdolez at exosec.fr
Wed Nov 8 20:53:45 CET 2006


Hello

Here is the patch for check_ntp.c

----------------------------------------------------------
--- 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 (bdolez)

-----------------------
This thread is located in the archive at this URL:
http://www.nagiosexchange.org/nagiosplug-devel.31.0.html?&tx_maillisttofaq_pi1[showUid]=22679
					




More information about the Devel mailing list