svn commit: r358243 - stable/11/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Sat Feb 22 11:04:25 UTC 2020
Author: kib
Date: Sat Feb 22 11:04:24 2020
New Revision: 358243
URL: https://svnweb.freebsd.org/changeset/base/358243
Log:
MFC r357982:
Use designated initializers for seminfo.
Modified:
stable/11/sys/kern/sysv_sem.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/kern/sysv_sem.c
==============================================================================
--- stable/11/sys/kern/sysv_sem.c Sat Feb 22 10:55:49 2020 (r358242)
+++ stable/11/sys/kern/sysv_sem.c Sat Feb 22 11:04:24 2020 (r358243)
@@ -190,15 +190,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-stable-11
mailing list