summaryrefslogtreecommitdiffstats
path: root/src/net/udp.c
diff options
context:
space:
mode:
authorMichael Brown2008-11-19 20:33:05 +0100
committerMichael Brown2008-11-19 20:33:05 +0100
commit0ebbbb95fa03622423154a3e56251dd58832654d (patch)
tree3bb6fa8df8158cf546a3fe42364cfd3d0b4ef831 /src/net/udp.c
parent[build] Explicitly link efilink against -liberty (diff)
downloadipxe-0ebbbb95fa03622423154a3e56251dd58832654d.tar.gz
ipxe-0ebbbb95fa03622423154a3e56251dd58832654d.tar.xz
ipxe-0ebbbb95fa03622423154a3e56251dd58832654d.zip
[x86_64] Fix assorted 64-bit compilation errors and warnings
Remove various 32-bit assumptions scattered throughout the codebase. The code is still not necessarily 64-bit clean, but will at least compile.
Diffstat (limited to 'src/net/udp.c')
-rw-r--r--src/net/udp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/udp.c b/src/net/udp.c
index 407ea14d..fddf81df 100644
--- a/src/net/udp.c
+++ b/src/net/udp.c
@@ -438,12 +438,13 @@ static struct xfer_interface_operations udp_xfer_operations = {
/** UDP socket opener */
struct socket_opener udp_socket_opener __socket_opener = {
- .semantics = SOCK_DGRAM,
+ .semantics = UDP_SOCK_DGRAM,
.family = AF_INET,
.open = udp_open,
};
-char UDP_SOCK_DGRAM[1];
+/** Linkage hack */
+int udp_sock_dgram = UDP_SOCK_DGRAM;
/**
* Open UDP URI