indent -kr -i8 -l132 on everything in textclient
[citadel.git] / textclient / ipc_c_tcp.c
index 93edebcdb4a0e0be7850e819e6fc16dd8a27fd18..4e4b8b87257c7a51050524b89bda2e1fea069721 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();
        }
@@ -52,5 +55,5 @@ void connection_died(CtdlIPC* ipc, int using_ssl) {
        fflush(stdout);
        shutdown(ipc->sock, 2);
        ipc->sock = -1;
-        exit(1);
+       exit(1);
 }