svn commit: r330602 - head/sys/compat/cloudabi

Eitan Adler eadler at FreeBSD.org
Wed Mar 7 14:47:44 UTC 2018


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;


More information about the svn-src-head mailing list