Adjusted indention
This commit is contained in:
parent
af1ce3b6bb
commit
7097243191
32
syslogd.c
32
syslogd.c
@ -2163,28 +2163,28 @@ void domark()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (MarkInterval > 0) {
|
if (MarkInterval > 0) {
|
||||||
now = time(0);
|
now = time(0);
|
||||||
MarkSeq += TIMERINTVL;
|
MarkSeq += TIMERINTVL;
|
||||||
if (MarkSeq >= MarkInterval) {
|
if (MarkSeq >= MarkInterval) {
|
||||||
logmsg(LOG_MARK|LOG_INFO, "-- MARK --", LocalHostName, ADDDATE|MARK);
|
logmsg(LOG_MARK|LOG_INFO, "-- MARK --", LocalHostName, ADDDATE|MARK);
|
||||||
MarkSeq = 0;
|
MarkSeq = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SYSV
|
#ifdef SYSV
|
||||||
for (lognum = 0; lognum <= nlogs; lognum++) {
|
for (lognum = 0; lognum <= nlogs; lognum++) {
|
||||||
f = &Files[lognum];
|
f = &Files[lognum];
|
||||||
#else
|
#else
|
||||||
for (f = Files; f; f = f->f_next) {
|
for (f = Files; f; f = f->f_next) {
|
||||||
#endif
|
#endif
|
||||||
if (f->f_prevcount && now >= REPEATTIME(f)) {
|
if (f->f_prevcount && now >= REPEATTIME(f)) {
|
||||||
dprintf("flush %s: repeated %d times, %d sec.\n",
|
dprintf("flush %s: repeated %d times, %d sec.\n",
|
||||||
TypeNames[f->f_type], f->f_prevcount,
|
TypeNames[f->f_type], f->f_prevcount,
|
||||||
repeatinterval[f->f_repeatcount]);
|
repeatinterval[f->f_repeatcount]);
|
||||||
fprintlog(f, LocalHostName, 0, (char *)NULL);
|
fprintlog(f, LocalHostName, 0, (char *)NULL);
|
||||||
BACKOFF(f);
|
BACKOFF(f);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
(void) signal(SIGALRM, domark);
|
(void) signal(SIGALRM, domark);
|
||||||
(void) alarm(TIMERINTVL);
|
(void) alarm(TIMERINTVL);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user