Fix broken macro
authorEric Andersen <andersen@codepoet.org>
Sat, 16 Apr 2005 08:04:31 +0000 (08:04 -0000)
committerEric Andersen <andersen@codepoet.org>
Sat, 16 Apr 2005 08:04:31 +0000 (08:04 -0000)
networking/inetd.c

index 169cc87..a1fa29c 100644 (file)
@@ -560,7 +560,7 @@ static void config(int signum)
                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) {type c=(type)(a); (a)=(type)(b); (b)=(type)c;}
 
                        sigprocmask(SIG_BLOCK, &emptymask, &oldmask);
                        /*