Add a pw_mkdb2 function that allows to pass the endianness for the
database to generate
Details
- Reviewers
• ian - Group Reviewers
manpages - Commits
- rS283969: Add a pw_mkdb2(3) function which does the same thing as pw_mkdb(3) except
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Looks good to me, modulo the one typo that needs fixing.
lib/libutil/pw_util.c | ||
---|---|---|
249 ↗ | (On Diff #5925) | s/b PWDB_NATIVE |
head/lib/libutil/pw_util.3 | ||
---|---|---|
237 | All previous functions have: The <functionname> function ... |
head/lib/libutil/pw_util.3 | ||
---|---|---|
237 | "The blahblah function" is only needed if it is unclear whether blahblah is a function. Usually it is shorter and simpler to just use the name. I restricted my review to changed lines, but most of the other uses are redundant also. | |
250 | Oops, missed the first time: "little-endian" should not be capitalized. Also, passive->active: s/will be/is/. This should probably be more specific, too: (Just winging it, you might have a better way to say this.) | |
252 | The database is generated in big-endian byte order. |
head/lib/libutil/pw_util.3 | ||
---|---|---|
250 | "is generated" is still passive voice. I don't have the problem with passive voice that most people seem to, but if you want to go active-voice you need an action verb, not a state-of-being verb. E.g., "Generate the database in little-endian byte order." |