* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: pppd.h,v 1.2 1994/04/18 04:08:41 paulus Exp $
+ * $Id: pppd.h,v 1.3 1994/05/26 06:43:42 paulus Exp $
*/
/*
(c) = *(cp)++; \
}
#define PUTCHAR(c, cp) { \
- *(cp)++ = (c); \
+ *(cp)++ = (u_char) (c); \
}
(s) |= *(cp)++; \
}
#define PUTSHORT(s, cp) { \
- *(cp)++ = (s) >> 8; \
- *(cp)++ = (s); \
+ *(cp)++ = (u_char) ((s) >> 8); \
+ *(cp)++ = (u_char) (s); \
}
#define GETLONG(l, cp) { \
(l) |= *(cp)++; \
}
#define PUTLONG(l, cp) { \
- *(cp)++ = (l) >> 24; \
- *(cp)++ = (l) >> 16; \
- *(cp)++ = (l) >> 8; \
- *(cp)++ = (l); \
+ *(cp)++ = (u_char) ((l) >> 24); \
+ *(cp)++ = (u_char) ((l) >> 16); \
+ *(cp)++ = (u_char) ((l) >> 8); \
+ *(cp)++ = (u_char) (l); \
}
#define INCPTR(n, cp) ((cp) += (n))