summaryrefslogtreecommitdiff
path: root/usr.bin/error/subr.c
AgeCommit message (Collapse)Author
2022-04-07fix various typos in comments.andvar
2009-08-13Pass WARNS=4, not without some gross preprocessor hackery.dholland
XXX: does this program actually do anything useful these days?
2009-08-13Assorted minor cleanup:dholland
- use stdbool.h (partly) - move extern declarations of data to header files - use right types for calloc() wrapper - remove bogus casts on return values - remove excessive Pascal-style parentheses in conditionals - a couple const fixes - fix some typos in comments
2009-08-13Sprinkle const.dholland
2009-08-13Whitespace.dholland
2009-08-13sprinkle staticdholland
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-07-14get rid of strsave(), use strdup directlyitojun
2003-07-14the function is equivalent to strdup.itojun
2002-05-26Remove #ifndef'd __STDC__ code. ANSIfy.wiz
2000-11-15strcmp returns an int not a ptr so don't compare to NULLchristos
2000-01-14Eliminate hard coded buffer sizes in fgets() statements, usemjl
strlcpy() to avoid buffer overflows, increase filename buffer to MAXPATHLEN. (from OpenBSD)
1999-05-15Fix serious bug with string overruns that caused error to coredump randomlychristos
on NetBSD, and each time on other OS's. Also 0 -> NULL or 0 -> '\0' where appropriate.
1999-05-15Don't assume isspace(0) == 1sommerfeld
1998-11-06char -> unsigned charchristos
1997-10-18WARNSify (big job!), fix .Nm usagelukem
1995-09-10Handle long lines without core-dumping.christos
1995-09-02Sync with 4.4lite2jtc
1993-08-01Add RCS identifiers.mycroft
1993-04-09added, from net/2 (patch 119).cgd