Print this page
10121 smatch fix for auditstat
@@ -21,10 +21,14 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
#include "statcommon.h"
#include <sys/types.h>
#include <stdlib.h>
#include <ctype.h>
@@ -116,12 +120,11 @@
return (0);
}
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];
(void) sprintf(buf,