tip(1): Fix building with -fno-common.We do so by adding 'EXTERN' to all offending variables and then defining'EXTERN' to 'extern' for all .c files, except for one (tip.c). This isthe same "fix"
tip(1): Fix building with -fno-common.We do so by adding 'EXTERN' to all offending variables and then defining'EXTERN' to 'extern' for all .c files, except for one (tip.c). This isthe same "fix" that FreeBSD chose, to be cleaned up better at a laterpoint in time.-fno-common will be default in future compilers (GCC 10, for example).
show more ...
Use <fcntl.h> instead of <sys/file.h> for open()'s prototype and flags.
Fix a few typos across the tree.
tip(1): Mark as breaking strict aliasing.The boolean(v) macro uses type-punned pointers.
Add __attribute__((__noreturn__)) to various function prototypes in usr.bin/.This general cleanup is useful in various ways. It helps the compileroptimize better and it also helps later GCCs detec
Add __attribute__((__noreturn__)) to various function prototypes in usr.bin/.This general cleanup is useful in various ways. It helps the compileroptimize better and it also helps later GCCs detect better when to give-Wimplicit-fallthrough warnings and when not.Found-with: -Wsuggest-attribute=noreturn
Use <termios.h> instead of the deprecated <sys/termios.h>.
Remove advertising header from usr.bin/Correct BSD License clause numbering from 1-2-4 to 1-2-3.
tip(1): Minor cleanup
tip(1): Remove some dead code that was never built.
Remove unnecessary whitespace in macro arguments in some manual pages.
tip(1): Remove another unused file.
tip(1): Reduce it to what we actually use from it.Also, merge libacu remains.No change in functionality.
tip(1): Raise WARNS to 2 and fix all corresponding warnings.Also ansify, use -std=gnu99 like everywhere else and do some morecleanups.
tip(1): Fix various warnings and errors emitted by clangThe most serious were void/return mismatches, but clang also complainedabout ambiguous brackets and mis-matching printf formats. It also di
tip(1): Fix various warnings and errors emitted by clangThe most serious were void/return mismatches, but clang also complainedabout ambiguous brackets and mis-matching printf formats. It also didn'tlike one particular K&R-formatted function, but I'm not sure why not.
Remove a bunch of unnecessary semicolons.
Fix some printf()s.
Correct BSD License clause numbering from 1-2-4 to 1-2-3.Apparently everyone's doing it:http://svnweb.freebsd.org/base?view=revision&revision=251069Submitted-by: "Eitan Adler" <lists at eitanadl
Correct BSD License clause numbering from 1-2-4 to 1-2-3.Apparently everyone's doing it:http://svnweb.freebsd.org/base?view=revision&revision=251069Submitted-by: "Eitan Adler" <lists at eitanadler.com>
Remove advertising header from man pages.By: Eitan Adler <lists@eitanadler.com>
tip(1): Remove the clearing of the schg flag of cu(1) during installation.A long, long time ago (until 2004), when cu(1) was still a separateprogram, its schg flag was set after installation, so i
tip(1): Remove the clearing of the schg flag of cu(1) during installation.A long, long time ago (until 2004), when cu(1) was still a separateprogram, its schg flag was set after installation, so it had to becleared on the installed cu before installing the new one over it.In 0f3db4ffe, we removed cu(1) as a separate program and made it alink to tip(1). In this commit, the setting of schg was commentedout but the clearing part had to be kept (for upgrading).We can now remove the clearing of the flag as well, because we cansafely assume that since September 2004, all schg flags of cu(1)sout there have been cleared (i.e., all systems that would ever wantto upgrade to master have a world newer than 0f3db4ffe).
tip(1): Fix some -Wmissing-parameter-type warnings.It still needs more cleanup.
Sweep-fix comparing pointers with 0 (and assigning 0 to pointers).For better readability, don't compare pointers with 0 or assign 0to them. Use NULL instead.The change was done with coccinelle.
tip(1): Remove "register".
Set CSTD back to gnu89 for tip(1) too (this needs cleanup).
Revert "Lower some WARNS from 1 to 0. This needs more work."This reverts commit e49a8a3866b68864b4b89ab47dbe8f878d7abaa2.Leave the WARNS where they are. We'll lower CSTD instead.
Lower some WARNS from 1 to 0. This needs more work.
12