summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/lcp.c
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>1998-06-28 09:41:46 +0000
committerbrian <brian@cvs.openbsd.org>1998-06-28 09:41:46 +0000
commit8450d1a683f097861d2675e8d8c28164c4bdac1c (patch)
tree95c3fe45271b174e98c82903b21d288f993b5bce /usr.sbin/ppp/lcp.c
parent26708466d70aa1cf138b44070b2dcc110f5d469a (diff)
Don't assume sizeof(long) == 4
Diffstat (limited to 'usr.sbin/ppp/lcp.c')
-rw-r--r--usr.sbin/ppp/lcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/lcp.c b/usr.sbin/ppp/lcp.c
index b0e4cea81cc..fe0e29d662c 100644
--- a/usr.sbin/ppp/lcp.c
+++ b/usr.sbin/ppp/lcp.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: lcp.c,v 1.10 1998/06/27 12:06:44 brian Exp $
+ * $Id: lcp.c,v 1.11 1998/06/28 09:41:40 brian Exp $
*
* TODO:
* o Validate magic number received from peer.
@@ -261,7 +261,7 @@ do { \
do { \
o.id = ty; \
o.len = 6; \
- *(u_long *)o.data = htonl(arg); \
+ *(u_int32_t *)o.data = htonl(arg); \
cp += LcpPutConf(LogLCP, cp, &o, cftypes[o.id], "0x%08lx", (u_long)arg);\
} while (0)
@@ -281,7 +281,7 @@ do { \
o.id = TY_QUALPROTO; \
o.len = 8; \
*(u_short *)o.data = htons(PROTO_LQR); \
- *(u_long *)(o.data+2) = htonl(period); \
+ *(u_int32_t *)(o.data+2) = htonl(period); \
cp += LcpPutConf(LogLCP, cp, &o, cftypes[o.id], \
"period %ld", (u_long)period); \
} while (0)