PERFORCE change 136590 for review
Christian S.J. Peron
csjp at FreeBSD.org
Sat Mar 1 18:26:55 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=136590
Change 136590 by csjp at ibm01 on 2008/03/01 18:26:01
Some cosmetic nits
Affected files ...
.. //depot/projects/trustedbsd/netauditd/netauditd.c#12 edit
Differences ...
==== //depot/projects/trustedbsd/netauditd/netauditd.c#12 (text+ko) ====
@@ -160,7 +160,7 @@
}
void
-netaudit_run()
+netaudit_run(void)
{
fd_set rfds;
struct timeval tv;
@@ -229,7 +229,7 @@
}
void
-netaudit_establish()
+netaudit_establish(void)
{
struct au_cmpnt *au;
@@ -268,7 +268,7 @@
}
void
-netaudit_oq()
+netaudit_oq(void)
{
struct au_cmpnt *au;
struct au_queue_ent *q, *tmpr;
@@ -378,7 +378,7 @@
exit(2);
new->sb_fd = accept(au->ac_fd, new->sb_sockaddr, &new->sb_socklen);
if (new->sb_fd == -1) {
- if ((errno == EWOULDBLOCK) || (errno == ECONNABORTED)) {
+ if (errno == EWOULDBLOCK || errno == ECONNABORTED) {
free(new->sb_sockaddr);
free(new);
return;
@@ -486,8 +486,9 @@
}
void
-usage()
+usage(void)
{
+
(void) fputs("usage: netauditd [-Ddh] [-f path]\n", stderr);
exit(1);
}
More information about the p4-projects
mailing list