Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Aug 2016 00:48:13 +0000 (UTC)
From:      Rick Macklem <rmacklem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r304194 - head/usr.bin/nfsstat
Message-ID:  <201608160048.u7G0mDMl018204@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rmacklem
Date: Tue Aug 16 00:48:13 2016
New Revision: 304194
URL: https://svnweb.freebsd.org/changeset/base/304194

Log:
  Fix r304026 so that it builds for gcc.
  
  Reported by:	np
  Tested by:	np
  MFC after:	1 month

Modified:
  head/usr.bin/nfsstat/nfsstat.c

Modified: head/usr.bin/nfsstat/nfsstat.c
==============================================================================
--- head/usr.bin/nfsstat/nfsstat.c	Tue Aug 16 00:40:38 2016	(r304193)
+++ head/usr.bin/nfsstat/nfsstat.c	Tue Aug 16 00:48:13 2016	(r304194)
@@ -130,7 +130,8 @@ static void compute_new_stats(struct nfs
 struct stattypes {
 	int stat_type;
 	int nfs_type;
-} static statstruct[] = {
+};
+static struct stattypes statstruct[] = {
 	{STAT_TYPE_READ, NFSV4OP_READ},
 	{STAT_TYPE_WRITE, NFSV4OP_WRITE},
 	{STAT_TYPE_COMMIT, NFSV4OP_COMMIT}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608160048.u7G0mDMl018204>