History log of /openbsd-current/usr.sbin/mrouted/prune.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.19 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
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.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.18 21-Jan-2017 krw

Having a 'case 256:' in a switch (<uchar>) {} is bad on principle
and makes gcc unhappy.

In-line the single use #define, eliminate the 256: case and remove
a now unneeded local variable.

ok guenther@


# 1.17 21-Jan-2017 krw

Accommodate gcc's suggestion that assignments used as truth values
should be enclosed in parentheses.

ok deraadt@


# 1.16 25-Dec-2016 krw

Add some {}'s to eliminate "ambiguous else" warnings from gcc.

ok tb@ millert@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.15 19-Dec-2015 mmcc

Remove NULL-check before free().


# 1.14 21-Aug-2015 deraadt

since stdlib.h is in scope, don't cast.... you know the drill.
no sneakiness detected by krw


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.13 21-Apr-2013 deraadt

use arc4random_uniform(); ok djm
plus some other markings about signal races...


# 1.12 21-Apr-2013 tedu

deregister. no binary change.


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.11 15-Jun-2005 robert

remove SNMP code from mrouted(8) because it is broken and it is
higly unlike that anyone will use this.

ok otto@ millert@ henning@


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.10 26-Nov-2003 millert

Replace log() with logit() since ISO C reserves log() for the math
library and gcc 3.x will complain. Replacement name taken from NetBSD.
espie@ OK.


Revision tags: OPENBSD_3_4_BASE
# 1.9 02-Apr-2003 deraadt

sprintf killing; millert ok


Revision tags: OPENBSD_3_3_BASE
# 1.8 03-Mar-2003 deraadt

spaces


# 1.7 03-Mar-2003 deraadt

ansi, from cloder


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE
# 1.6 17-Feb-2002 millert

Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)


# 1.5 16-Feb-2002 millert

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.


Revision tags: OPENBSD_3_0_BASE
# 1.4 23-Aug-2001 aaron

recieve -> receive


# 1.3 27-Jul-2001 pvalchev

Wall cleanup


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.2 14-Dec-1995 deraadt

from netbsd; update to mrouted 3.8


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.18 21-Jan-2017 krw

Having a 'case 256:' in a switch (<uchar>) {} is bad on principle
and makes gcc unhappy.

In-line the single use #define, eliminate the 256: case and remove
a now unneeded local variable.

ok guenther@


# 1.17 21-Jan-2017 krw

Accommodate gcc's suggestion that assignments used as truth values
should be enclosed in parentheses.

ok deraadt@


# 1.16 25-Dec-2016 krw

Add some {}'s to eliminate "ambiguous else" warnings from gcc.

ok tb@ millert@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.15 19-Dec-2015 mmcc

Remove NULL-check before free().


# 1.14 21-Aug-2015 deraadt

since stdlib.h is in scope, don't cast.... you know the drill.
no sneakiness detected by krw


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.13 21-Apr-2013 deraadt

use arc4random_uniform(); ok djm
plus some other markings about signal races...


# 1.12 21-Apr-2013 tedu

deregister. no binary change.


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.11 15-Jun-2005 robert

remove SNMP code from mrouted(8) because it is broken and it is
higly unlike that anyone will use this.

ok otto@ millert@ henning@


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.10 26-Nov-2003 millert

Replace log() with logit() since ISO C reserves log() for the math
library and gcc 3.x will complain. Replacement name taken from NetBSD.
espie@ OK.


Revision tags: OPENBSD_3_4_BASE
# 1.9 02-Apr-2003 deraadt

sprintf killing; millert ok


Revision tags: OPENBSD_3_3_BASE
# 1.8 03-Mar-2003 deraadt

spaces


# 1.7 03-Mar-2003 deraadt

ansi, from cloder


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE
# 1.6 17-Feb-2002 millert

Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)


# 1.5 16-Feb-2002 millert

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.


Revision tags: OPENBSD_3_0_BASE
# 1.4 23-Aug-2001 aaron

recieve -> receive


# 1.3 27-Jul-2001 pvalchev

Wall cleanup


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.2 14-Dec-1995 deraadt

from netbsd; update to mrouted 3.8


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision