]> code.citadel.org Git - citadel.git/blobdiff - textclient/ipc_c_tcp.c
textclient: don't prompt to change internet email addresses when deleting a user
[citadel.git] / textclient / ipc_c_tcp.c
index efb997dcc31265ca7faecfc63b7e773491e81c7a..573f872d3c98400a46b1ebc94f601a8e968fc569 100644 (file)
 
 /* 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 +41,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));