projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup
[citadel.git]
/
citadel
/
sysdep.c
diff --git
a/citadel/sysdep.c
b/citadel/sysdep.c
index 61fc7a2c2edf213bbbd97f7db59f2ddca2501502..53c695615cd5a8f47a6f25abd1db2cd23dfe30ef 100644
(file)
--- a/
citadel/sysdep.c
+++ b/
citadel/sysdep.c
@@
-634,8
+634,7
@@
int client_getln(char *buf, int bufsize)
/*
* Cleanup any contexts that are left lying around
*/
/*
* Cleanup any contexts that are left lying around
*/
-void close_masters (void)
-{
+void close_masters(void) {
struct ServiceFunctionHook *serviceptr;
const char *Text;
struct ServiceFunctionHook *serviceptr;
const char *Text;
@@
-645,8
+644,7
@@
void close_masters (void)
for (serviceptr = ServiceHookTable; serviceptr != NULL;
serviceptr = serviceptr->next ) {
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";
}
if (serviceptr->msock == -1) {
Text = "not closing again";
}
@@
-661,8
+659,7
@@
void close_masters (void)
serviceptr->tcp_port = 0;
}
serviceptr->tcp_port = 0;
}
- if (serviceptr->sockpath != NULL)
- {
+ if (serviceptr->sockpath != NULL) {
if (serviceptr->msock == -1) {
Text = "not closing again";
}
if (serviceptr->msock == -1) {
Text = "not closing again";
}
@@
-676,8
+673,7
@@
void close_masters (void)
);
}
);
}
- if (serviceptr->msock != -1)
- {
+ if (serviceptr->msock != -1) {
close(serviceptr->msock);
serviceptr->msock = -1;
}
close(serviceptr->msock);
serviceptr->msock = -1;
}
@@
-795,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");
StrBuf *CrashMail;
CrashMail = NewStrBuf();
syslog(LOG_ALERT, "sysdep: posting crash message");
@@
-845,9
+838,7
@@
int convert_login(char NameToConvert[]) {
}
}
-
-void HuntBadSession(void)
-{
+void HuntBadSession(void) {
int highest;
CitContext *ptr;
fd_set readfds;
int highest;
CitContext *ptr;
fd_set readfds;