move braces
[citadel.git] / citadel / sysdep.c
index 61fc7a2c2edf213bbbd97f7db59f2ddca2501502..2eccadc64685ca2a000ae7719b26888ad87ce3f7 100644 (file)
@@ -543,8 +543,7 @@ int client_read_to(char *buf, int bytes, int timeout)
 }
 
 
-int HaveMoreLinesWaiting(CitContext *CCC)
-{
+int HaveMoreLinesWaiting(CitContext *CCC) {
        if ((CCC->kill_me != 0) ||
            ( (CCC->RecvBuf.ReadWritePointer == NULL) && 
              (StrLength(CCC->RecvBuf.Buf) == 0) && 
@@ -560,13 +559,11 @@ int HaveMoreLinesWaiting(CitContext *CCC)
  * (This is implemented in terms of client_read_to() and could be
  * justifiably moved out of sysdep.c)
  */
-INLINE int client_read(char *buf, int bytes)
-{
+INLINE int client_read(char *buf, int bytes) {
        return(client_read_to(buf, bytes, CtdlGetConfigInt("c_sleeping")));
 }
 
-int CtdlClientGetLine(StrBuf *Target)
-{
+int CtdlClientGetLine(StrBuf *Target) {
        CitContext *CCC=CC;
        const char *Error;
        int rc;
@@ -598,8 +595,7 @@ int CtdlClientGetLine(StrBuf *Target)
  * (This is implemented in terms of client_read() and could be
  * justifiably moved out of sysdep.c)
  */
-int client_getln(char *buf, int bufsize)
-{
+int client_getln(char *buf, int bufsize) {
        int i, retval;
        CitContext *CCC=CC;
        const char *pCh;
@@ -634,8 +630,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;
 
@@ -645,8 +640,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";
                        }
@@ -661,8 +655,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";
                        }
@@ -676,8 +669,7 @@ void close_masters (void)
                        );
                }
 
-                if (serviceptr->msock != -1)
-               {
+                if (serviceptr->msock != -1) {
                        close(serviceptr->msock);
                        serviceptr->msock = -1;
                }
@@ -795,11 +787,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");
@@ -845,9 +834,7 @@ int convert_login(char NameToConvert[]) {
 }
 
 
-
-void HuntBadSession(void)
-{
+void HuntBadSession(void) {
        int highest;
        CitContext *ptr;
        fd_set readfds;