blob: 9b7ef2b192cd3c3235b895c333cba9d110b3f2d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
$NetBSD: patch-ag,v 1.2 2000/02/03 16:01:15 abs Exp $
--- linuxdoom-1.10/i_net.c.orig Mon Dec 22 20:37:46 1997
+++ linuxdoom-1.10/i_net.c Thu Feb 3 01:33:48 2000
@@ -50,21 +50,6 @@
-
-// For some odd reason...
-#define ntohl(x) \
- ((unsigned long int)((((unsigned long int)(x) & 0x000000ffU) << 24) | \
- (((unsigned long int)(x) & 0x0000ff00U) << 8) | \
- (((unsigned long int)(x) & 0x00ff0000U) >> 8) | \
- (((unsigned long int)(x) & 0xff000000U) >> 24)))
-
-#define ntohs(x) \
- ((unsigned short int)((((unsigned short int)(x) & 0x00ff) << 8) | \
- (((unsigned short int)(x) & 0xff00) >> 8))) \
-
-#define htonl(x) ntohl(x)
-#define htons(x) ntohs(x)
-
void NetSend (void);
boolean NetListen (void);
@@ -73,7 +58,7 @@
// NETWORKING
//
-int DOOMPORT = (IPPORT_USERRESERVED +0x1d );
+int DOOMPORT = (IPPORT_RESERVED +0x1d );
int sendsocket;
int insocket;
|