summaryrefslogtreecommitdiff
path: root/usr/src/cmd/auditstat/auditstat.c
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2018-12-19 18:12:50 +0000
committerJohn Levon <john.levon@joyent.com>2019-02-14 09:19:47 +0000
commitba00d94ad32aec378c65c2bad5cd13dd9145041a (patch)
tree25d2289dd9e21ebb09a2caf851b8f1e8188935c4 /usr/src/cmd/auditstat/auditstat.c
parent07e71bcf7552a80dff82c5f2b62d9d3a65c488b2 (diff)
downloadillumos-joyent-ba00d94ad32aec378c65c2bad5cd13dd9145041a.tar.gz
10121 smatch fix for auditstat
Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
Diffstat (limited to 'usr/src/cmd/auditstat/auditstat.c')
-rw-r--r--usr/src/cmd/auditstat/auditstat.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/src/cmd/auditstat/auditstat.c b/usr/src/cmd/auditstat/auditstat.c
index 594ba8e16a..cdb5a586ae 100644
--- a/usr/src/cmd/auditstat/auditstat.c
+++ b/usr/src/cmd/auditstat/auditstat.c
@@ -23,6 +23,10 @@
* Use is subject to license terms.
*/
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
#include "statcommon.h"
#include <sys/types.h>
@@ -118,8 +122,7 @@ char **argv;
static void
-display_stats(s, cnt)
-au_stat_t *s;
+display_stats(au_stat_t *s, int cnt)
{
int offset[12]; /* used to line the header up correctly */
char buf[512];