Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | satisfy -fno-common, by (1) copying all the variable decls from | 2021-01-26 | 2 | -67/+191 | |
| | | | | | | indent_globs.h to indent.c, and (2) changing all the same decls in indent_globs.h to be extern ok mortimer | ||||
* | When system calls indicate an error they return -1, not some arbitrary | 2019-06-28 | 1 | -3/+3 | |
| | | | | | | 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. | ||||
* | it's typedef, not typdef. | 2016-06-06 | 1 | -2/+2 | |
| | | | | typo found by Piotr Stefaniak | ||||
* | creat() -> open equiv; from Frederic Nowak | 2015-11-11 | 1 | -2/+2 | |
| | |||||
* | Change all tame callers to namechange to pledge(2). | 2015-10-09 | 1 | -3/+3 | |
| | |||||
* | tame "stdio rpath wpath cpath", because this program reads and creates | 2015-10-05 | 1 | -1/+3 | |
| | | | | files, using stdio. It does nothing else. | ||||
* | Mark diag() as printf-like | 2015-09-27 | 2 | -5/+4 | |
| | | | | ok millert@ | ||||
* | Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope | 2015-08-20 | 3 | -13/+13 | |
| | | | | ok krw millert | ||||
* | Recognise 'F'/'f' constant suffix for single precision floating point. | 2015-01-22 | 1 | -1/+7 | |
| | | | | | | | Prevents indent from inserting a space which broke the build of the development version of Mesa. ok millert@ deraadt@ | ||||
* | Make some $OpenBSD$ lines prettier/standardier by eliminating | 2015-01-19 | 2 | -2/+2 | |
| | | | | | | | superflous '*' after '/*' and adding blank after terminating '$'. Also eases parsing of the lines by simple awk scripts. Aesthetic approval from tedu@. | ||||
* | Replace <sys/param.h> with <limits.h> and other less dirty headers where | 2015-01-16 | 1 | -4/+4 | |
| | | | | | | | | | 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) | ||||
* | Userland reallocarray() audit. | 2014-10-11 | 1 | -2/+2 | |
| | | | | | | | Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@ | ||||
* | Make sure the correct errno is reported by warn* or err* and not | 2014-07-20 | 1 | -2/+3 | |
| | | | | | | the errno of an intervening cleanup operation like close/unlink/etc. Diff from Doug Hogan (doug (at) acyclic.org) | ||||
* | Use errc/warnc to simplify code. | 2014-05-20 | 2 | -4/+4 | |
| | | | | | | Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@ | ||||
* | unsigned char casts for ctype | 2013-11-26 | 4 | -14/+17 | |
| | | | | ok krw | ||||
* | tweak previous; | 2013-06-24 | 1 | -4/+4 | |
| | |||||
* | Default to stdin/stdout if no input files are | 2013-06-21 | 2 | -7/+11 | |
| | | | | | | given to indent. Based on FreeBSD svn rev 40502. ok kettenis@ millert@ lteo@ | ||||
* | add ut/nut flags to indent to enable/disable tabs. | 2013-06-20 | 5 | -12/+57 | |
| | | | | | based on FreeBSD svn rev 131184. ok deraadt@ | ||||
* | remove uesless Pp; | 2013-01-17 | 1 | -3/+2 | |
| | |||||
* | no more vgrind(1); ok deraadt | 2010-10-19 | 1 | -7/+4 | |
| | |||||
* | More delimiters that need quoting inside macros, hunted down by jmc@, | 2010-07-15 | 1 | -3/+3 | |
| | | | | who asked me to commit because he is just running out of the door. | ||||
* | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | 2009-10-27 | 6 | -45/+6 | |
| | | | | | | | 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 | ||||
* | "input-file" is a required argument; while here, remove a few superfluous | 2009-05-29 | 2 | -6/+6 | |
| | | | | | | spaces around the brackets and synchronize the argument names. ok jmc@ | ||||
* | typos; ok jmc@ | 2007-11-27 | 1 | -3/+3 | |
| | | | | sys/dev/pci/pciide.c from naddy@ | ||||
* | use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg | 2007-09-02 | 1 | -3/+3 | |
| | |||||
* | convert to new .Dd format; | 2007-05-31 | 1 | -2/+2 | |
| | |||||
* | When checking for comment characters using negative pointer arithmetic | 2005-05-15 | 1 | -3/+3 | |
| | | | | | make sure that we don't peek at memory outside the string boundaries. Fixes a core dump with mmap malloc. | ||||
* | Fix realloc bug introduce in rev 1.10 and do some minor cleanup. | 2005-03-06 | 1 | -11/+8 | |
| | | | | OK henning@ and tdeval@ | ||||
* | clearer wording; | 2005-02-04 | 1 | -4/+4 | |
| | | | | based on a diff from freebsd -r1.22; | ||||
* | Spell precede correctly. | 2004-11-29 | 1 | -3/+3 | |
| | | | | 'looks fine' millert@, krw@. ok jmc@ | ||||
* | ansi; khalek@linuxgamers.net | 2004-07-20 | 5 | -52/+29 | |
| | |||||
* | - some fixes from PR 1446 | 2003-11-28 | 1 | -62/+65 | |
| | | | | | | | | | | | - 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 | ||||
* | better realloc. ok deraadt@ henning@ | 2003-09-26 | 2 | -10/+15 | |
| | |||||
* | minimal protos | 2003-06-26 | 2 | -7/+7 | |
| | |||||
* | delete junk proto | 2003-06-25 | 1 | -2/+1 | |
| | |||||
* | de-register and ansification; millert ok | 2003-06-12 | 1 | -6/+4 | |
| | |||||
* | final bits of obvious UCB term 3 removal | 2003-06-12 | 8 | -53/+21 | |
| | |||||
* | de-register | 2003-06-11 | 1 | -5/+9 | |
| | |||||
* | - section reorder | 2003-06-10 | 1 | -5/+1 | |
| | | | | | | | | | - COMPATIBILITY merge - macro cleanup - kill whitespace at EOL - new sentence, new line ssh pages ok markus@ | ||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-03 | 1 | -7/+3 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | sprintf -> snprintf and add a couple of size checks to ensure against | 2003-04-25 | 1 | -5/+11 | |
| | | | | | | overflow. ok tdeval@ deraadt@ dhartmei@ | ||||
* | snprintf | 2003-04-01 | 1 | -4/+3 | |
| | |||||
* | inconsistant spelling; torh@bogus.net | 2002-11-29 | 1 | -3/+3 | |
| | |||||
* | misplaced break in the last | 2002-10-07 | 1 | -3/+3 | |
| | |||||
* | some formatting from mickey. | 2002-10-04 | 1 | -8/+8 | |
| | | | | | | | 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; | ||||
* | fprintf+exit vs errx | 2002-10-04 | 1 | -6/+4 | |
| | |||||
* | better error message when we find unmatched braces. (i.e. "braces" is more | 2002-03-16 | 1 | -3/+3 | |
| | | | | precise than "stuff") | ||||
* | We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft. | 2002-02-19 | 1 | -21/+5 | |
| | |||||
* | Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. | 2002-02-16 | 2 | -26/+26 | |
| | |||||
* | kill more registers | 2001-11-19 | 3 | -11/+11 | |
| | | | | millert@ ok |