svn commit: trunk/busybox/networking

vapier at busybox.net vapier at busybox.net
Wed Oct 5 00:50:05 UTC 2005


Author: vapier
Date: 2005-10-04 17:50:03 -0700 (Tue, 04 Oct 2005)
New Revision: 11760

Log:
dont typecast lvalue since gcc hates that

Modified:
   trunk/busybox/networking/inetd.c


Changeset:
Modified: trunk/busybox/networking/inetd.c
===================================================================
--- trunk/busybox/networking/inetd.c	2005-10-05 00:46:04 UTC (rev 11759)
+++ trunk/busybox/networking/inetd.c	2005-10-05 00:50:03 UTC (rev 11760)
@@ -945,7 +945,7 @@
 	if (sep != 0) {
 	  int i;
 
-#define SWAP(type, a, b) {type c=(type)a; (type)a=(type)b; (type)b=(type)c;}
+#define SWAP(type, a, b) do {type c=(type)a; a=(type)b; b=(type)c;} while (0)
 
 	  omask = sigblock (SIGBLOCK);
 	  /*




More information about the busybox-cvs mailing list