main/asterisk.c: Reverse #if statement in listener() to fix code folding.
[asterisk/asterisk.git] / main / asterisk.c
index 1817eef..a466120 100644 (file)
@@ -1610,15 +1610,14 @@ static void *listener(void *unused)
                        if (errno != EINTR)
                                ast_log(LOG_WARNING, "Accept returned %d: %s\n", s, strerror(errno));
                } else {
-#if !defined(SO_PASSCRED)
-                       {
-#else
+#if defined(SO_PASSCRED)
                        int sckopt = 1;
                        /* turn on socket credentials passing. */
                        if (setsockopt(s, SOL_SOCKET, SO_PASSCRED, &sckopt, sizeof(sckopt)) < 0) {
                                ast_log(LOG_WARNING, "Unable to turn on socket credentials passing\n");
-                       } else {
+                       } else
 #endif
+                       {
                                for (x = 0; x < AST_MAX_CONNECTS; x++) {
                                        if (consoles[x].fd >= 0) {
                                                continue;