Author :
cheloha
Date :
2022-01-01 18:20:52
Hash :17a80e6e Message :uniq(1): miscellaneous style(9)-ish stuff
- Include what you use:
+ Add <strings.h> for strcasecmp(3).
+ Drop <errno.h>, unused.
- Pull the "errstr" declaration out of the getopt(3) loop
up to the top of main().
- Align the strtonum(3) error messages with the argument
names in the uniq.1 manpage and the usage string. They
are referred to as "chars" and "fields".
- Trim some whitespace.
- Return from main() instead of exit(3).
- De-(void) fprintf(3).
- Prefer getprogname(3) to __progname.