Explorar o código

fix SHUT_WR typo in sys/socket.h and duplicate definitions of SHUT_*

Szabolcs Nagy %!s(int64=11) %!d(string=hai) anos
pai
achega
2c2418088d
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      include/sys/socket.h

+ 1 - 5
include/sys/socket.h

@@ -33,7 +33,7 @@ struct linger
 };
 
 #define SHUT_RD 0
-#define SHUT_WD 1
+#define SHUT_WR 1
 #define SHUT_RDWR 2
 
 #ifndef SOCK_STREAM
@@ -290,10 +290,6 @@ int setsockopt (int, int, int, const void *, socklen_t);
 
 int sockatmark (int);
 
-#define SHUT_RD 0
-#define SHUT_WR 1
-#define SHUT_RDWR 2
-
 #ifdef __cplusplus
 }
 #endif