58554f95 | 01-Jan-2005 |
Chris Pressey <cpressey@dragonflybsd.org> |
Use real getopt() handling instead of the hand-rolled and IOCCC-worthy "Micro getopt()" macros. In the process, clean up the option-handling code: - Sort the options in the switch statement; - Plug
Use real getopt() handling instead of the hand-rolled and IOCCC-worthy "Micro getopt()" macros. In the process, clean up the option-handling code: - Sort the options in the switch statement; - Plug piddling memory leaks when processing repeated options by freeing strings before allocating them for a second time; - Die with a fatal error if the requested report file cannot be opened for appending; - Don't call init() before usage() (to prevent the usage message being mangled by changes to the terminal settings;) - Raise WARNS to 6.
show more ...
|
87d33d13 | 31-Dec-2004 |
Chris Pressey <cpressey@dragonflybsd.org> |
Clean up the usage message, both in usage() and in the main program comment, both stylistically (sort and combine options) and for accuracy (following the manual page, make note of the -s and -S flag
Clean up the usage message, both in usage() and in the main program comment, both stylistically (sort and combine options) and for accuracy (following the manual page, make note of the -s and -S flags, and use the term 'send' instead of 'say' to reduce confusion (SAY is the name of a command for output to the user, not the connection.))
show more ...
|
15536adc | 31-Dec-2004 |
Chris Pressey <cpressey@dragonflybsd.org> |
Merge with FreeBSD revision 1.20 (markm):
"Big cleanup. Remove unused stuff, make closer to style(9).
OK'ed by: peter (long time ago)"
In detail: - Reorder #includes. - Assume stdarg.h, remove __
Merge with FreeBSD revision 1.20 (markm):
"Big cleanup. Remove unused stuff, make closer to style(9).
OK'ed by: peter (long time ago)"
In detail: - Reorder #includes. - Assume stdarg.h, remove __V() macro. - Assume TERMIOS, remove TERMIO code. - Remove SUNOS-specific, SOL2-specific, and ultrix-specific code. - Remove unused code. - Remove `register' keywords. - Add `__unused' to unused function parameters. - Reduce warnings.
show more ...
|