diff options
author | glebius <glebius@FreeBSD.org> | 2004-11-11 09:41:03 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2004-11-11 09:41:03 +0000 |
commit | b0c7fef551649bc22e8dda1aa3bb0712cd0dfc73 (patch) | |
tree | 0b9862f21d4f3969056b28c1cfa5ee3cf0324610 /usr.sbin/syslogd/syslogd.c | |
parent | dc109677f9c0d4a165d01451145032213f8278d0 (diff) | |
download | FreeBSD-src-b0c7fef551649bc22e8dda1aa3bb0712cd0dfc73.zip FreeBSD-src-b0c7fef551649bc22e8dda1aa3bb0712cd0dfc73.tar.gz |
Whitespace.
Approved by: cvs diff -b
Diffstat (limited to 'usr.sbin/syslogd/syslogd.c')
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 247ca21..410e53a 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -446,7 +446,7 @@ main(int argc, char *argv[]) SecureMode++; break; case 'u': /* only log specified priority */ - UniquePriority++; + UniquePriority++; break; case 'v': /* log facility and priority */ LogFacPri++; @@ -685,9 +685,9 @@ usage(void) fprintf(stderr, "%s\n%s\n%s\n%s\n", "usage: syslogd [-46Acdknosuv] [-a allowed_peer]", - " [-b bind address] [-f config_file]", - " [-l log_socket] [-m mark_interval]", - " [-P pid_file] [-p log_socket]"); + " [-b bind address] [-f config_file]", + " [-l log_socket] [-m mark_interval]", + " [-P pid_file] [-p log_socket]"); exit(1); } @@ -783,7 +783,7 @@ readklog(void) printsys(p); len = 0; } - if (len > 0) + if (len > 0) memmove(line, p, len + 1); } if (len > 0) @@ -1103,7 +1103,7 @@ fprintlog(struct filed *f, int flags, const char *msg) v->iov_base = fp_buf; v->iov_len = strlen(fp_buf); } else { - v->iov_base = nul; + v->iov_base = nul; v->iov_len = 0; } v++; @@ -1161,20 +1161,20 @@ fprintlog(struct filed *f, int flags, const char *msg) if (finet) { for (r = f->f_un.f_forw.f_addr; r; r = r->ai_next) { for (i = 0; i < *finet; i++) { -#if 0 +#if 0 /* * should we check AF first, or just * trial and error? FWD */ if (r->ai_family == - address_family_of(finet[i+1])) + address_family_of(finet[i+1])) #endif lsent = sendto(finet[i+1], line, l, 0, r->ai_addr, r->ai_addrlen); - if (lsent == l) + if (lsent == l) break; } - if (lsent == l && !send_to_all) + if (lsent == l && !send_to_all) break; } dprintf("lsent/l: %d/%d\n", lsent, l); @@ -1593,7 +1593,7 @@ init(int signo) p = LocalHostName; for (i = 1; i < MAXHOSTNAMELEN - 1; i++) { if (!isalnum(*p) && *p != '.' && *p != '-' - && *p != ',') + && *p != ',') break; host[i] = *p++; } |