summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2005-12-13do some silly de-lintingKjell Wooding
2005-12-13If you're going to pass a length parameter, you should use it.Kjell Wooding
2005-12-13Add a "M-x lint" mode, now that lint is next-error friendly.Kjell Wooding
While here, delint some name clashes.
2005-12-12Restructure conditional from last checkin regarding constant in conditionalChad Loder
contexts, so that we do not lose the ability to warn on non-integer constants.
2005-12-12Cut down on extraneous "constant in conditional context" warnings whenChad Loder
lint encounters expressions like do { ... } while (0); and if (1) ... We use these idioms frequently in our tree for scoping purposes and we deem them to be safe. Now lint will not warn if it encounters a constant in a conditional context when the expression consists only of a constant (with no operators) and the constant is 0 or 1. This means that lint will not warn for "if (1)" but will warn for "if (2)" and will also continue to warn for "if (foo && 1)". This cuts down the vast majority of these warnings while still preserving the ability to catch bugs.
2005-12-12sync usage();Jason McIntyre
from david leonard (pr #4939);
2005-12-12- simplify synopsisJason McIntyre
- remove some .Bk/.Ek clutter - sort options list
2005-12-12only xfree() cf->cf_dir when it's not NULL;Joris Vink
2005-12-12ARGSUSED on signal handlerTheo de Raadt
2005-12-12in the write codepaths, errors other than EAGAIN are fatal to the loop; ok ottoTheo de Raadt
2005-12-12Adam Weishaupt (by grunk@); fix a couple of entries out of orderMichael Shalayeff
2005-12-12rcsnum_alloc() and rcsnum_cpy() no longer can fail, so don'tJoris Vink
bother checking return values for failure. ok xsa@
2005-12-12make sure protocol messages for internal channels are ignored.Markus Friedl
allow adjust messages for non-open channels; with and ok djm@
2005-12-12- sync usage() for `-tfile|str'Xavier Santolaria
- nuke trailing whitespace
2005-12-12be consistent w/ `-tfile|str' documentation (cf. rcs.1);Xavier Santolaria
2005-12-11SRCS should contain .y and .l references, then make will do the right thingTheo de Raadt
2005-12-11make this compile againTheo de Raadt
2005-12-11ARGSUSEDTheo de Raadt
2005-12-10switch to xmalloc stuff, me and xsa@ agreed on this a longJoris Vink
time ago, but we were being held back by jfb. too bad for him. next step is to use fatal() through out the code for unrecoverable errors instead of trying to be all nice and fluffy and reach main() again. ok niallo@ and xsa@
2005-12-10Make the style of these messages more like that of gcc messages.Chad Loder
2005-12-10- its wrong to use exit() here; return instead.Niall O'Higgins
ok joris@
2005-12-10Change warning/error format to match gcc's.Chad Loder
2005-12-10how did this slip in, grr.Martin Reindl
2005-12-10translate a bunch of comments from german to englishMartin Reindl
ok cloder@
2005-12-10Lint now warns about sizeof(term) where the operator is anything otherChad Loder
than unary *, ->, a name, or a string.
2005-12-10Fix a commentChad Loder
2005-12-10Add a new lint flag '-f' which, for each warning or error, prints theChad Loder
offending line from the corresponding source code file. The general idea is OK deraadt
2005-12-10Back out all gcc attribute parsing changes until we can do this the rightChad Loder
way some day. The effect of __attribute__ on a LALR C grammar is just too ugly to fix quicklly.
2005-12-10Fix a crash when enum bitfields are encountered. Reported by marc onChad Loder
sparc but we really should see the crash on any arch. Lots of places in the code assume that if tspec == ENUM that they can touch t_enum, so when we see an ENUM bitfield, we coerce the type to INT or UINT. We also clear the t_isenum flag and the t_proto flag any time we invalidate the data in the union. We should be stricter about checking t_isenum everywhere, but that is a bigger job.
2005-12-09license cleanIan Darwin
2005-12-09don't complain too often about 'redefinition of revision number',Joris Vink
specially when rev is actually NULL.
2005-12-09if we are removing a lock that's not present, just checkJoris Vink
out the file without complaining;
2005-12-09Do not warn about assignment in conditional context if the assignmentChad Loder
expression is itself wrapped in parentheses. We use this idiom in our tree to indicate that the programmer knows and accepts that an assignment is happening. Idea suggested by deraadt
2005-12-09unused vars, my bad;Joris Vink
2005-12-09Another case theo reminded me ofChad Loder
2005-12-09Don't ever complain when assigning a char literal to a char lvalue,Chad Loder
regardless of sign/unsign differences. In other words, even though C treats char literals as ints, if the rvalue is a literal inside single quotes, and the lvalue is any kind of char, then assume the programmer knows what he is doing.
2005-12-08Check fread() return value to get sane error message for too-smallTodd C. Miller
gmon header. Idea from Alexey Dobriyan
2005-12-08new sentence, new line;Jason McIntyre
2005-12-08complete and correct rcs locking functionality,Joris Vink
it was only done partially and as a bonus, completely wrong. seriously guys what was up with that?
2005-12-08two changes to the new ssh tunnel support. this breaks compatibilityReyk Floeter
with the initial commit but is required for a portable approach. - make the tunnel id u_int and platform friendly, use predefined types. - support configuration of layer 2 (ethernet) or layer 3 (point-to-point, default) modes. configuration is done using the Tunnel (yes|point-to-point|ethernet|no) option is ssh_config(5) and restricted by the PermitTunnel (yes|point-to-point|ethernet|no) option in sshd_config(5). ok djm@, man page bits by jmc@
2005-12-08keep options in order;Jason McIntyre
2005-12-08make `!command' a little clearer;Jason McIntyre
ok reyk
2005-12-08oops - forgot to remind tom to update usage();Jason McIntyre
2005-12-07Tweak synopsisTom Cosgrove
ok jmc@
2005-12-07Tidy up month parsing: don't accept "mayor" for "may", or "4x" for "4".Tom Cosgrove
And strptime(3) %b and %B conversions are the same, so don't bother trying both. ok otto@
2005-12-07update the man -k example, and reword for clarity;Jason McIntyre
2005-12-07- avoid line split in SYNOPSISJason McIntyre
- add args to -w - kill trailing whitespace
2005-12-07typoReyk Floeter
2005-12-07reyk forgot to compile with -Werror (missing header)Damien Miller
2005-12-07Remove extra printfsChad Loder