summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix')
-rw-r--r--otherlibs/unix/socketaddr.c2
-rw-r--r--otherlibs/unix/socketaddr.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/otherlibs/unix/socketaddr.c b/otherlibs/unix/socketaddr.c
index f2c2c6730..13b772ffa 100644
--- a/otherlibs/unix/socketaddr.c
+++ b/otherlibs/unix/socketaddr.c
@@ -26,7 +26,7 @@ value alloc_inet_addr(a)
unsigned int a;
{
value res;
- res = alloc(1, Abstract_tag);
+ res = alloc_string(sizeof(uint32));
GET_INET_ADDR(res) = a;
return res;
}
diff --git a/otherlibs/unix/socketaddr.h b/otherlibs/unix/socketaddr.h
index 3d09c5689..1a65c7891 100644
--- a/otherlibs/unix/socketaddr.h
+++ b/otherlibs/unix/socketaddr.h
@@ -29,4 +29,4 @@ void get_sockaddr P((value));
value alloc_sockaddr P((void));
value alloc_inet_addr P((unsigned int));
-#define GET_INET_ADDR(v) (*((unsigned long *) (v)))
+#define GET_INET_ADDR(v) (*((uint32 *) (v)))