X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=textclient%2Fipc_c_tcp.c;h=4e4b8b87257c7a51050524b89bda2e1fea069721;hb=HEAD;hp=efb997dcc31265ca7faecfc63b7e773491e81c7a;hpb=633eabfc5820a6cc3b3c45793243928d0fa9c099;p=citadel.git diff --git a/textclient/ipc_c_tcp.c b/textclient/ipc_c_tcp.c index efb997dcc..9124cf943 100644 --- a/textclient/ipc_c_tcp.c +++ b/textclient/ipc_c_tcp.c @@ -2,35 +2,25 @@ // // Copyright (c) 1987-2018 by the citadel.org team // -// This program is open source software. Use, duplication, and/or -// disclosure are subject to the GNU General Purpose 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 GNU General Public License version 3. #include "textclient.h" /* Note that some of these functions may not work with multiple instances. */ -static void (*deathHook) (void) = NULL; -int (*error_printf) (char *s, ...) = (int (*)(char *, ...)) printf; +static void (*deathHook)(void) = NULL; +int (*error_printf)(char *s, ...) = (int (*)(char *, ...)) printf; -void setIPCDeathHook(void (*hook) (void)) -{ +void setIPCDeathHook(void (*hook)(void)) { deathHook = hook; } -void setIPCErrorPrintf(int (*func) (char *s, ...)) -{ +void setIPCErrorPrintf(int (*func)(char *s, ...)) { error_printf = func; } -void connection_died(CtdlIPC * ipc, int using_ssl) -{ +void connection_died(CtdlIPC * ipc, int using_ssl) { if (deathHook != NULL) { deathHook(); } @@ -44,7 +34,8 @@ void connection_died(CtdlIPC * ipc, int using_ssl) fprintf(stderr, "Last error: %s\n", ERR_reason_error_string(ERR_get_error())); SSL_free(ipc->ssl); ipc->ssl = NULL; - } else + } + else #endif fprintf(stderr, "Last error: %s\n", strerror(errno));