allow_panic = FALSE;
dtemp = fabs(fp_offset - last_offset);
if (dtemp > CLOCK_SGATE * oerror && mu <
- ULOGTOD(sys_poll + 1)) {
+ (u_long) ULOGTOD(sys_poll + 1)) {
#ifdef DEBUG
if (debug)
printf(
dtemp = max(mu, allan_xpt);
flladj = (fp_offset - clock_offset) * etemp /
(CLOCK_FLL * dtemp);
- etemp = min(mu, ULOGTOD(sys_poll));
+ etemp = min(mu, (u_long) ULOGTOD(sys_poll));
dtemp = 4 * CLOCK_PLL * ULOGTOD(sys_poll);
plladj = fp_offset * etemp / (dtemp * dtemp);
last_time = peer->epoch;
md->mode = (u_char) mode;
md->version = PKT_VERSION(pkt->li_vn_mode);
md->interface = rbufp->dstadr;
- md->cast_flags = ((rbufp->dstadr->flags & INT_MULTICAST) &&
+ md->cast_flags = (u_char)(((rbufp->dstadr->flags & INT_MULTICAST) &&
rbufp->fd == md->interface->fd) ? MDF_MCAST: rbufp->fd ==
- md->interface->bfd ? MDF_BCAST : MDF_UCAST;
+ md->interface->bfd ? MDF_BCAST : MDF_UCAST);
/*
* Drop him into front of the hash table. Also put him on top of
return 0;
}
- if (up->rpt_buf[0] == (char) 0x8f) {
+ /*
+ * We cast both to u_char to as 0x8f uses the sign bit on a char
+ */
+ if ((u_char) up->rpt_buf[0] == (u_char) 0x8f) {
/*
* Superpackets
*/
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
+/* Skip asynch rpc inclusion */
+#ifndef __RPCASYNC_H__
+#define __RPCASYNC_H__
+#endif
+
/* Prevent inclusion of winsock.h in windows.h */
#ifndef _WINSOCKAPI_
#define _WINSOCKAPI_
*
*/
+/*
+ * Ignore nonstandard extension warning.
+ * This happens when including winioctl.h
+ */
+#pragma warning( disable : 4201)
+
#include <config.h>
#include <windows.h>
#include <stdio.h>