svn commit: r358240 - stable/12/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Sat Feb 22 10:48:43 UTC 2020
Author: kib
Date: Sat Feb 22 10:48:42 2020
New Revision: 358240
URL: https://svnweb.freebsd.org/changeset/base/358240
Log:
MFC r357982:
Use designated initializers for seminfo.
Modified:
stable/12/sys/kern/sysv_sem.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/kern/sysv_sem.c
==============================================================================
--- stable/12/sys/kern/sysv_sem.c Sat Feb 22 09:58:11 2020 (r358239)
+++ stable/12/sys/kern/sysv_sem.c Sat Feb 22 10:48:42 2020 (r358240)
@@ -198,15 +198,15 @@ struct sem_undo {
* semaphore info struct
*/
struct seminfo seminfo = {
- 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 */
+ .semmni = SEMMNI, /* # of semaphore identifiers */
+ .semmns = SEMMNS, /* # of semaphores in system */
+ .semmnu = SEMMNU, /* # of undo structures in system */
+ .semmsl = SEMMSL, /* max # of semaphores per id */
+ .semopm = SEMOPM, /* max # of operations per semop call */
+ .semume = SEMUME, /* max # of undo entries per process */
+ .semusz = SEMUSZ, /* size in bytes of undo structure */
+ .semvmx = SEMVMX, /* semaphore maximum value */
+ .semaem = SEMAEM, /* adjust on exit max value */
};
SYSCTL_INT(_kern_ipc, OID_AUTO, semmni, CTLFLAG_RDTUN, &seminfo.semmni, 0,
More information about the svn-src-all
mailing list