summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2005-12-15sort;Jason McIntyre
2005-12-15fstat does not print an '*' for fifos, okay jmc@Pedro Martelletto
2005-12-15Add a new warning message: conversion of %s return value from '%s' to '%s'.Chad Loder
Lint now warns when a function's return value is converted to a smaller (or differently signed) type. These conversions can happen when doing an assignment, when passing a function's return value as an argument to another function, or when initializing a variable. Currently this produces useless warnings on tolower() and toupper() because they return ints but are usually assigned to chars.
2005-12-14Move arg # to start of message. Makes it slighly more usefulKjell Wooding
even when display is truncated due to long file name. ok cloder
2005-12-14correct usage();Xavier Santolaria
2005-12-14document `-I' and `-sstate[:rev]';Xavier Santolaria
2005-12-14Fix parsing of non-decimal fractions, which was giving bogus results.Otto Moerbeek
Noted by Zvezdan Petkovic in PR 4940.
2005-12-14argh. One problem with fixing a hidden global symbol is that if you miss one,Kjell Wooding
you get no warning. Fixes an immediate core in describe-bindings.
2005-12-13fix emp norton-1 entry; from James J. Lippard <lippard-openbsd@discord.org>Michael Shalayeff
2005-12-13discordian calendar; from:Michael Shalayeff
Screaming Lizard Propulsion Systems w/ permission to do anything w/ it. via M. Schatzl <wtf@neuronenwerk.de>
2005-12-13give inode 8 positions (new ver w/ missing spaces deraadt pt out); millert@ ↵Michael Shalayeff
krw@ ok
2005-12-13Fix a typo (introduced in rev 1.6) that utterly broke cost calculations.Kjell Wooding
In theory, mg should now be much more efficient on slow displays (hello, zaurus). Spotted by lint. ok millert.
2005-12-13add missing $OpenBSD$Xavier Santolaria
2005-12-13if forced_tun_device is not set, it is -1 and not SSH_TUNID_ANYReyk Floeter
2005-12-13sdl->sdl_data does not contain a nul terminated string, so use bcopy andDavid Gwynne
terminate it manually rather than use strlcpy to get the interface name. fixes output on my sparc and sparc64s. ok markus@ deraadt@
2005-12-13Last round of easy delinting.Kjell Wooding
2005-12-13More name-clash delintingKjell Wooding
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