svn commit: r329007 - head/sys/sys

Brooks Davis brooks at FreeBSD.org
Thu Feb 8 00:42:29 UTC 2018


Author: brooks
Date: Thu Feb  8 00:42:28 2018
New Revision: 329007
URL: https://svnweb.freebsd.org/changeset/base/329007

Log:
  style(9): use a type for each member in struct defintions.
  
  Shorten a comment to fit in 80 columns.

Modified:
  head/sys/sys/msg.h
  head/sys/sys/sem.h

Modified: head/sys/sys/msg.h
==============================================================================
--- head/sys/sys/msg.h	Thu Feb  8 00:42:02 2018	(r329006)
+++ head/sys/sys/msg.h	Thu Feb  8 00:42:28 2018	(r329007)
@@ -138,12 +138,12 @@ struct msg {
  * two between 8 and 1024 inclusive (and panic's if it isn't).
  */
 struct msginfo {
-	int	msgmax,		/* max chars in a message */
-		msgmni,		/* max message queue identifiers */
-		msgmnb,		/* max chars in a queue */
-		msgtql,		/* max messages in system */
-		msgssz,		/* size of a message segment (see notes above) */
-		msgseg;		/* number of message segments */
+	int	msgmax;		/* max chars in a message */
+	int	msgmni;		/* max message queue identifiers */
+	int	msgmnb;		/* max chars in a queue */
+	int	msgtql;		/* max messages in system */
+	int	msgssz;		/* size of a message segment (see note) */
+	int	msgseg;		/* number of message segments */
 };
 extern struct msginfo	msginfo;
 

Modified: head/sys/sys/sem.h
==============================================================================
--- head/sys/sys/sem.h	Thu Feb  8 00:42:02 2018	(r329006)
+++ head/sys/sys/sem.h	Thu Feb  8 00:42:28 2018	(r329007)
@@ -107,15 +107,15 @@ union semun {
  * semaphore info struct
  */
 struct seminfo {
-	int	semmni,		/* # of semaphore identifiers */
-		semmns,		/* # of semaphores in system */
-		semmnu,		/* # of undo structures in system */
-		semmsl,		/* max # of semaphores per id */
-		semopm,		/* max # of operations per semop call */
-		semume,		/* max # of undo entries per process */
-		semusz,		/* size in bytes of undo structure */
-		semvmx,		/* semaphore maximum value */
-		semaem;		/* adjust on exit max value */
+	int	semmni;		/* # of semaphore identifiers */
+	int	semmns;		/* # of semaphores in system */
+	int	semmnu;		/* # of undo structures in system */
+	int	semmsl;		/* max # of semaphores per id */
+	int	semopm;		/* max # of operations per semop call */
+	int	semume;		/* max # of undo entries per process */
+	int	semusz;		/* size in bytes of undo structure */
+	int	semvmx;		/* semaphore maximum value */
+	int	semaem;		/* adjust on exit max value */
 };
 extern struct seminfo	seminfo;
 


More information about the svn-src-head mailing list