]> code.citadel.org Git - citadel.git/blobdiff - citadel/utils/ctdlmigrate.c
I can't see the screen with my sunglasses on
[citadel.git] / citadel / utils / ctdlmigrate.c
index 8c1f18a5383b01ebadedde4727947bdb77683f54..19539ba37d13b2c46b6ed5eafa3bf626595f6142 100644 (file)
@@ -2,13 +2,8 @@
 //
 // Copyright (c) 2009-2022 citadel.org
 //
-// This program is open source software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License version 3.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
+// This program is open source software.  Use, duplication, or disclosure
+// is subject to the terms of the GNU General Public License, version 3.
 
 #include <stdlib.h>
 #include <unistd.h>
@@ -105,7 +100,8 @@ static int tcp_connectsock(char *host, char *service) {
        if (rc == 1) {                                  // dotted quad
                hints.ai_family = AF_INET;
                hints.ai_flags |= AI_NUMERICHOST;
-       } else {
+       }
+       else {
                rc = inet_pton(AF_INET6, host, &serveraddr);
                if (rc == 1) {                          // IPv6 address
                        hints.ai_family = AF_INET6;