X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fsysdep.c;h=53c695615cd5a8f47a6f25abd1db2cd23dfe30ef;hb=e9bd613e0d4569696c16108d61e16e5e2959af1b;hp=6da2bb4431e6a1d48eccb9bd71ad61980d310f9c;hpb=ab6b11ab4005e990fbb368b14c42630b7694c54f;p=citadel.git diff --git a/citadel/sysdep.c b/citadel/sysdep.c index 6da2bb443..53c695615 100644 --- a/citadel/sysdep.c +++ b/citadel/sysdep.c @@ -634,10 +634,7 @@ int client_getln(char *buf, int bufsize) /* * Cleanup any contexts that are left lying around */ - - -void close_masters (void) -{ +void close_masters(void) { struct ServiceFunctionHook *serviceptr; const char *Text; @@ -647,8 +644,7 @@ void close_masters (void) for (serviceptr = ServiceHookTable; serviceptr != NULL; serviceptr = serviceptr->next ) { - if (serviceptr->tcp_port > 0) - { + if (serviceptr->tcp_port > 0) { if (serviceptr->msock == -1) { Text = "not closing again"; } @@ -663,8 +659,7 @@ void close_masters (void) serviceptr->tcp_port = 0; } - if (serviceptr->sockpath != NULL) - { + if (serviceptr->sockpath != NULL) { if (serviceptr->msock == -1) { Text = "not closing again"; } @@ -678,8 +673,7 @@ void close_masters (void) ); } - if (serviceptr->msock != -1) - { + if (serviceptr->msock != -1) { close(serviceptr->msock); serviceptr->msock = -1; } @@ -797,11 +791,8 @@ void start_daemon(int unused) { } - -void checkcrash(void) -{ - if (nFireUpsNonRestart != nFireUps) - { +void checkcrash(void) { + if (nFireUpsNonRestart != nFireUps) { StrBuf *CrashMail; CrashMail = NewStrBuf(); syslog(LOG_ALERT, "sysdep: posting crash message"); @@ -847,9 +838,7 @@ int convert_login(char NameToConvert[]) { } - -void HuntBadSession(void) -{ +void HuntBadSession(void) { int highest; CitContext *ptr; fd_set readfds;