summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray <source@isc.org>2002-04-27 05:35:20 +0000
committerMurray <source@isc.org>2002-04-27 05:35:20 +0000
commit78ed62b61dc272be93ab388a70826a69b4dbd5f9 (patch)
tree8b74cb0642dbff001bf4d74eafa4c5ba393f7257
parent0d97a33f335d30b5a35ad4e7a4bad1bb0bdf7dac (diff)
downloadisc-dhcp-78ed62b61dc272be93ab388a70826a69b4dbd5f9.tar.gz
Use conversion targets that are the right size. Do not assume ILP32.
Submitted by: mellon
-rw-r--r--omapip/convert.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/omapip/convert.c b/omapip/convert.c
index 83d5fc3b..b313959d 100644
--- a/omapip/convert.c
+++ b/omapip/convert.c
@@ -44,7 +44,7 @@
#ifndef lint
static char copyright[] =
-"$Id: convert.c,v 1.1 2000/08/01 22:34:36 neild Exp $ Copyright (c) 1996-1999 The Internet Software Consortium. All rights reserved.\n";
+"$Id: convert.c,v 1.1.2.1 2002/04/27 05:35:20 murray Exp $ Copyright (c) 1996-1999 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include <omapip/omapip_p.h>
@@ -52,7 +52,7 @@ static char copyright[] =
u_int32_t getULong (buf)
const unsigned char *buf;
{
- unsigned long ibuf;
+ u_int32_t ibuf;
memcpy (&ibuf, buf, sizeof (u_int32_t));
return ntohl (ibuf);
@@ -61,7 +61,7 @@ u_int32_t getULong (buf)
int32_t getLong (buf)
const unsigned char *buf;
{
- long ibuf;
+ int32_t ibuf;
memcpy (&ibuf, buf, sizeof (int32_t));
return ntohl (ibuf);