Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Aug 2019 19:44:57 +0000 (UTC)
From:      Leandro Lupori <luporl@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r350953 - head/sys/powerpc/include
Message-ID:  <201908121944.x7CJivDu096578@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: luporl
Date: Mon Aug 12 19:44:57 2019
New Revision: 350953
URL: https://svnweb.freebsd.org/changeset/base/350953

Log:
  Fix style and clarify comment
  
  Fix code style in proc.h and clarify comment about empty structs.

Modified:
  head/sys/powerpc/include/proc.h

Modified: head/sys/powerpc/include/proc.h
==============================================================================
--- head/sys/powerpc/include/proc.h	Mon Aug 12 19:44:28 2019	(r350952)
+++ head/sys/powerpc/include/proc.h	Mon Aug 12 19:44:57 2019	(r350953)
@@ -46,9 +46,8 @@ struct mdthread {
 };
 
 struct mdproc {
-	/* Avoid empty structs, that have undefined behavior in C99 and
-	 * make compilers complain about it
-	 * (empty struct has size 0 in C, size 1 in C++).
+	/*
+	 * Avoid empty structs because they are undefined behavior.
 	 */
 	long	md_spare;
 };



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