summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2004-11-10 14:48:26 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2004-11-10 14:48:26 +0000
commit8afdbd81097b76fe0404d13c062189e97fde1633 (patch)
treeab512dbc1c04be08b12fdf997ffc29ce6de6039a /usr.sbin/bgpd
parent35f8b96d9662d87e61f22c6bca1092f35815769b (diff)
"not reached" does not help LINT use NOTREACHED instead and use it only in
places where needed. OK henning@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/kroute.c4
-rw-r--r--usr.sbin/bgpd/pfkey.c4
-rw-r--r--usr.sbin/bgpd/session.c5
3 files changed, 4 insertions, 9 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c
index 914859fe2ef..82e65185e18 100644
--- a/usr.sbin/bgpd/kroute.c
+++ b/usr.sbin/bgpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.110 2004/10/19 12:02:50 henning Exp $ */
+/* $OpenBSD: kroute.c,v 1.111 2004/11/10 14:48:25 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1177,7 +1177,6 @@ fetchtable(void)
default:
free(kr);
continue;
- /* not reached */
}
if ((sa = rti_info[RTAX_GATEWAY]) != NULL)
@@ -1334,7 +1333,6 @@ dispatch_rtmsg(void)
break;
default:
continue;
- /* not reached */
}
}
diff --git a/usr.sbin/bgpd/pfkey.c b/usr.sbin/bgpd/pfkey.c
index a0b02a883bd..8c4227538cf 100644
--- a/usr.sbin/bgpd/pfkey.c
+++ b/usr.sbin/bgpd/pfkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkey.c,v 1.30 2004/05/28 18:39:09 henning Exp $ */
+/* $OpenBSD: pfkey.c,v 1.31 2004/11/10 14:48:25 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -97,7 +97,6 @@ pfkey_send(int sd, uint8_t satype, uint8_t mtype, uint8_t dir,
break;
default:
return (-1);
- /* not reached */
}
smask.ss_family = ssrc.ss_family;
smask.ss_len = ssrc.ss_len;
@@ -124,7 +123,6 @@ pfkey_send(int sd, uint8_t satype, uint8_t mtype, uint8_t dir,
break;
default:
return (-1);
- /* not reached */
}
dmask.ss_family = sdst.ss_family;
dmask.ss_len = sdst.ss_len;
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index b803be5830f..4eeaf622f2a 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.197 2004/11/02 10:56:48 henning Exp $ */
+/* $OpenBSD: session.c,v 1.198 2004/11/10 14:48:25 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1784,7 +1784,6 @@ parse_open(struct peer *peer)
peer->IdleHoldTimer = time(NULL); /* no punish */
peer->IdleHoldTime /= 2;
return (-1);
- /* not reached */
}
}
@@ -2326,7 +2325,7 @@ la_cmp(struct listen_addr *a, struct listen_addr *b)
break;
default:
fatal("king bula sez: unknown address family");
- /* not reached */
+ /* NOTREACHED */
}
return (0);