Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Mar 2018 14:47:43 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r330602 - head/sys/compat/cloudabi
Message-ID:  <201803071447.w27Elh7C053393@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Wed Mar  7 14:47:43 2018
New Revision: 330602
URL: https://svnweb.freebsd.org/changeset/base/330602

Log:
  sys/cloudabi: Avoid relying on GNU specific extensions
  
  An empty initializer list is not technically valid C grammar.
  
  MFC After:	1 week

Modified:
  head/sys/compat/cloudabi/cloudabi_fd.c

Modified: head/sys/compat/cloudabi/cloudabi_fd.c
==============================================================================
--- head/sys/compat/cloudabi/cloudabi_fd.c	Wed Mar  7 14:44:32 2018	(r330601)
+++ head/sys/compat/cloudabi/cloudabi_fd.c	Wed Mar  7 14:47:43 2018	(r330602)
@@ -382,7 +382,7 @@ int
 cloudabi_sys_fd_stat_get(struct thread *td,
     struct cloudabi_sys_fd_stat_get_args *uap)
 {
-	cloudabi_fdstat_t fsb = {};
+	cloudabi_fdstat_t fsb = {0};
 	struct file *fp;
 	cap_rights_t rights;
 	struct filecaps fcaps;



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