[or-cvs] Remove unused macro; add a comment on remaining macros.

Nick Mathewson nickm at seul.org
Fri Mar 11 21:38:09 UTC 2005


Update of /home/or/cvsroot/tor/src/or
In directory moria.mit.edu:/tmp/cvs-serv14360/src/or

Modified Files:
	relay.c 
Log Message:
Remove unused macro; add a comment on remaining macros.

Index: relay.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/relay.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- relay.c	10 Mar 2005 18:48:13 -0000	1.45
+++ relay.c	11 Mar 2005 21:38:06 -0000	1.46
@@ -518,14 +518,17 @@
   }
 }
 
+/* We need to use a few macros to deal with the fact that Windows
+ * decided that their sockets interface should be a permakludge.
+ * E_CASE is for errors where windows has both a EFOO and a WSAEFOO
+ * version, and S_CASE is for errors where windows has only a WSAEFOO
+ * version.  (The E is for 'error', the S is for 'socket'). */
 #ifdef MS_WINDOWS
 #define E_CASE(s) case s: case WSA ## s
 #define S_CASE(s) case WSA ## s
-#define W_CASE(s) case s:
 #else
 #define E_CASE(s) case s
 #define S_CASE(s) case s
-#define W_CASE(s)
 #endif
 
 int



More information about the tor-commits mailing list