summaryrefslogtreecommitdiff
path: root/usr.bin/indent
AgeCommit message (Collapse)Author
2024-08-20nasty whitespaceTheo de Raadt
2022-12-26spelling fixes; from paul tagliamonteJason McIntyre
amendments to his diff are noted on tech
2022-03-31man pages: add missing commas between subordinate and main clausesChristian Weisgerber
jmc@ dislikes a comma before "then" in a conditional, so leave those untouched. ok jmc@
2021-01-26satisfy -fno-common, by (1) copying all the variable decls fromTheo de Raadt
indent_globs.h to indent.c, and (2) changing all the same decls in indent_globs.h to be extern ok mortimer
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2016-06-06it's typedef, not typdef.Tobias Ulmer
typo found by Piotr Stefaniak
2015-11-11creat() -> open equiv; from Frederic NowakTheo de Raadt
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-05tame "stdio rpath wpath cpath", because this program reads and createsTheo de Raadt
files, using stdio. It does nothing else.
2015-09-27Mark diag() as printf-likePhilip Guenther
ok millert@
2015-08-20Do not cast result of malloc/calloc/realloc* if stdlib.h is in scopeTheo de Raadt
ok krw millert
2015-01-22Recognise 'F'/'f' constant suffix for single precision floating point.Jonathan Gray
Prevents indent from inserting a space which broke the build of the development version of Mesa. ok millert@ deraadt@
2015-01-19Make some $OpenBSD$ lines prettier/standardier by eliminatingKenneth R Westerback
superflous '*' after '/*' and adding blank after terminating '$'. Also eases parsing of the lines by simple awk scripts. Aesthetic approval from tedu@.
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-10-11Userland reallocarray() audit.Doug Hogan
Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
2014-07-20Make sure the correct errno is reported by warn* or err* and notPhilip Guenther
the errno of an intervening cleanup operation like close/unlink/etc. Diff from Doug Hogan (doug (at) acyclic.org)
2014-05-20Use errc/warnc to simplify code.Philip Guenther
Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@
2013-11-26unsigned char casts for ctypeTheo de Raadt
ok krw
2013-06-24tweak previous;Jason McIntyre
2013-06-21Default to stdin/stdout if no input files areJonathan Gray
given to indent. Based on FreeBSD svn rev 40502. ok kettenis@ millert@ lteo@
2013-06-20add ut/nut flags to indent to enable/disable tabs.Jonathan Gray
based on FreeBSD svn rev 131184. ok deraadt@
2013-01-17remove uesless Pp;Jason McIntyre
2010-10-19no more vgrind(1); ok deraadtJason McIntyre
2010-07-15More delimiters that need quoting inside macros, hunted down by jmc@,Ingo Schwarze
who asked me to commit because he is just running out of the door.
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-05-29"input-file" is a required argument; while here, remove a few superfluousIgor Sobrado
spaces around the brackets and synchronize the argument names. ok jmc@
2007-11-27typos; ok jmc@Martynas Venckus
sys/dev/pci/pciide.c from naddy@
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-05-31convert to new .Dd format;Jason McIntyre
2005-05-15When checking for comment characters using negative pointer arithmeticTodd C. Miller
make sure that we don't peek at memory outside the string boundaries. Fixes a core dump with mmap malloc.
2005-03-06Fix realloc bug introduce in rev 1.10 and do some minor cleanup.Todd C. Miller
OK henning@ and tdeval@
2005-02-04clearer wording;Jason McIntyre
based on a diff from freebsd -r1.22;
2004-11-29Spell precede correctly.Jonathan Gray
'looks fine' millert@, krw@. ok jmc@
2004-07-20ansi; khalek@linuxgamers.netTheo de Raadt
2003-11-28- some fixes from PR 1446Jason McIntyre
- much simpler groff macros - sync SYNOPSIS with reality - document which options are broken (-bap, -ip, -ln, -sob) - remove groff macros - document defaults - document -lcn Together with pjanzen's fixes (rev. 1.10), fixes PR 1446
2003-09-26better realloc. ok deraadt@ henning@Ted Unangst
2003-06-26minimal protosTheo de Raadt
2003-06-25delete junk protoTheo de Raadt
2003-06-12de-register and ansification; millert okTheo de Raadt
2003-06-12final bits of obvious UCB term 3 removalTheo de Raadt
2003-06-11de-registerTheo de Raadt
2003-06-10- section reorderJason McIntyre
- COMPATIBILITY merge - macro cleanup - kill whitespace at EOL - new sentence, new line ssh pages ok markus@
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-25sprintf -> snprintf and add a couple of size checks to ensure againstKenneth R Westerback
overflow. ok tdeval@ deraadt@ dhartmei@
2003-04-01snprintfTheo de Raadt
2002-11-29inconsistant spelling; torh@bogus.netTheo de Raadt
2002-10-07misplaced break in the lastMichael Shalayeff
2002-10-04some formatting from mickey.Michael Shalayeff
From: Maxim Tsyplakov <tm@openbsd.ru> indent -i0 somefile.c dumps core in indent.c line 276 ps.ind_level = ps.i_l_follow = col / ps.ind_size;
2002-10-04fprintf+exit vs errxMichael Shalayeff
2002-03-16 better error message when we find unmatched braces. (i.e. "braces" is moreVincent Labrecque
precise than "stuff")