Commit Graph

18 Commits

Author SHA1 Message Date
wiz 4c99916337 va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
wiz 14dbdf5518 Negative exit code cleanup: Replace exit(-x) with exit(x).
As seen on tech-userlevel.
2001-04-06 11:13:45 +00:00
augustss 43851beb31 Make it compile again after format string changes. 2000-10-12 06:11:40 +00:00
is d8302e2d73 More format string cleanups by sommerfeld. 2000-10-11 20:23:46 +00:00
mycroft f5d7100e26 Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
the correct definition from errno.h.
2000-01-21 17:08:33 +00:00
he d0c388761b Don't print trailing spaces if there are no flag value to print. 1999-05-23 16:15:18 +00:00
he 8344625106 Apply patches for mtrace in bin/5598 by yours truly.
This adds decoding of more error and result codes when tracing through
cisco routers running PIM and/or MBGP.
1999-01-14 21:54:10 +00:00
ross 5b1f2d4c8c Add {} pairs to shut up egcs. 1998-08-27 18:03:42 +00:00
mrg 5b9ccc383d use destination's size in 2 memcpy calls. 1998-07-04 21:31:59 +00:00
kleink 37bede84a4 Use strerror(3) instead of sys_errlist and sys_nerr. 1998-05-09 17:22:07 +00:00
lukem cb37f89394 WARNSify 1997-10-17 11:25:37 +00:00
mrg a9437d1189 be safe with buffers. 1997-04-13 13:36:46 +00:00
thorpej 89ed0166fe Change a rogue RCS id to new-style 1995-12-16 20:11:45 +00:00
mycroft 3d8d046845 Update to mrouted 3.8. 1995-12-10 10:57:11 +00:00
thorpej c57984e13a New-style RCS ids. 1995-10-04 03:47:51 +00:00
thorpej c381c611ec Make the behavior of `-s' consistent. 1995-06-02 01:02:09 +00:00
thorpej 9d50339841 Lots of things; use getopt(), make `-i ...' work, others. 1995-06-01 23:27:00 +00:00
mycroft 01207e9c90 Update to multicast 3.5. 1995-06-01 05:45:27 +00:00