summaryrefslogtreecommitdiff
path: root/usr.sbin/mtrace
AgeCommit message (Collapse)Author
2020-12-30getifaddrs() can return entries where ifa_addr is NULL. Check for thisSebastian Benoit
before accessing anything in ifa_addr. ok claudio@
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.
2017-08-31assorted warning fixes; ok millert@Otto Moerbeek
2017-01-21Nuke whitespace foolish enough to expose itself during the greatKenneth R Westerback
"warning:" rectification.
2016-08-03Apply a warning fix from lukem@NetBSD circa 1997 (more '()'), andKenneth R Westerback
one from he@NetBSD circa 1998 (more '{}'). Makes gcc happier.
2016-08-03Apply fix from David Binderman via NetBSD. "Use all 3 of b, p, nKenneth R Westerback
to determine if route changed". Spotted by the Echelon team with AppChecker static analyzer. NetBSD fix pointed out by millert@
2016-03-07(type *)0 -> NULLmmcc
ok sha256@
2015-11-18Remove memory.h include.mmcc
ok deraadt@
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-09-08obvious cases of missing .An;Ingo Schwarze
found with the new mandoc(1) MANDOCERR_AN_MISSING warning; no text changes
2013-11-24fairly obvious ctype cleanup dealing with argvTheo de Raadt
ok jca
2013-04-24kill srandom(); ok claudioTheo de Raadt
2013-04-20remove one of the last stupid (unsigned) casts in the treeTheo de Raadt
2011-09-21fix missing err.h includesJonathan Gray
2010-09-19more wacky macro fixing;Jason McIntyre
2010-03-26dispense with some wacky escape sequences;Jason McIntyre
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-04-16fix a few more typos found by spell(1); rectify a double "with" pointed outIgor Sobrado
by jmc@ while looking at this diff. ok jmc@, reyk@ (for the hostapd part)
2007-05-31convert to new .Dd format;Jason McIntyre
2007-02-19put -n in the right place; from Igor SobradoJason McIntyre
2007-02-18tidy up synopsis and usage; from Igor SobradoJason McIntyre
2005-05-03setresuid; ok deraadt@Damien Miller
2004-08-01ansi cleanup; khalek@linuxgamers.netTheo de Raadt
2004-03-16errno is not specified to be int, but something from errno.h. ok millert@Ted Unangst
2004-02-26fix datalen, from Esben Norby. ok deraadt itojunTed Unangst
2003-11-26Replace log() with logit() since ISO C reserves log() for the mathTodd C. Miller
library and gcc 3.x will complain. Replacement name taken from NetBSD. espie@ OK.
2003-09-23ignore address families other than AF_INET in get_netmask().Matthieu Herrb
ok cedric@
2003-08-19rewrite SIOCGIFCONF into getifaddrs. deraadt okJun-ichiro itojun Hagino
2003-08-19convert to poll; ok dhartmeiTheo de Raadt
2003-07-14- escape "It" so groff doesn't try to expand itJason McIntyre
- macro cleanup
2003-06-26strict proto cleanupsTheo de Raadt
2003-06-12- section reorderJason McIntyre
- macro fixes - kill whitespace at EOL - new sentence, new line
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-16update USC copyright, fixes "without fee" misplaced modifierTheo de Raadt
2003-03-13lots of sprintf -> snprintf and strcpy -> strlcpy; checked by teduTheo de Raadt
2003-03-04skip this setuid stuffTheo de Raadt
2002-08-09avoid dynamically-generated string to printf. die if fd_set overruns.Jun-ichiro itojun Hagino
from xs@kittenz.org
2002-06-14spelling; from Brian Poole <raj@cerias.purdue.edu>Todd T. Fries
2002-06-02missing sockaddr inits; ok itojunTheo de Raadt
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.Todd C. Miller
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-12-10follow post-2.1 ip_off & ip_len byte ordersTheo de Raadt
2001-09-05make sure that va_start() has matching va_end()Theo de Raadt
2001-07-27Wall cleanupPeter Valchev
2001-06-25Pavlin Ivanov Radoslavov <pavlin@catarina.usc.edu> writes:Theo de Raadt
> I received an email that the USC's General Counsel's Office > has approved that the software license to pimd can be changed to the > 3-clause BSD-like license! > [...] This is various other bits of software that is also covered by this.
2001-05-29Wrong section header ordering. Pointed out by <mpech@prosoft.org.lv>Hakan Olsson
2001-05-22More fixes. From <mpech@prosoft.org.lv>Hakan Olsson
2001-05-22Some fixes. From <mpech@prosoft.org.lv>Hakan Olsson
2001-05-22mdoc-ify. Add $OpenBSD$Hakan Olsson