Searched hist:"7 ca260df8cea7dea41e7a16362a3c5c45e86249c" (Results 1 – 1 of 1) sorted by relevance
/freebsd/usr.bin/proccontrol/ |
H A D | proccontrol.c | diff 7ca260df8cea7dea41e7a16362a3c5c45e86249c Thu Sep 12 13:35:04 CEST 2024 Brooks Davis <brooks@FreeBSD.org> proccontrol: use a table for modes
Add a central table of modes and loop over it rather than spelling out 10 essentialy identical strcmp if statemnts. Use the stable to generate usage as well reducing the number of ifdefs.
Disallow multiple -m options. Previouly multiple were allowed, but only the last one was used and there was no indication this happened.
Reviewed by: kib, markj Differential Revision: https://reviews.freebsd.org/D46426
|