mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 05:21:49 +03:00
[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.
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/**
|
||||
* @defgroup commtypes Communication semantics
|
||||
*
|
||||
@@ -14,12 +16,14 @@
|
||||
*/
|
||||
|
||||
/** Connection-based, reliable streams */
|
||||
#define SOCK_STREAM ( ( int ) TCP_SOCK_STREAM )
|
||||
extern char TCP_SOCK_STREAM[];
|
||||
extern int tcp_sock_stream;
|
||||
#define TCP_SOCK_STREAM 0x1
|
||||
#define SOCK_STREAM tcp_sock_stream
|
||||
|
||||
/** Connectionless, unreliable streams */
|
||||
#define SOCK_DGRAM ( ( int ) UDP_SOCK_DGRAM )
|
||||
extern char UDP_SOCK_DGRAM[];
|
||||
extern int udp_sock_dgram;
|
||||
#define UDP_SOCK_DGRAM 0x2
|
||||
#define SOCK_DGRAM udp_sock_dgram
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user