diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-11-18 14:30:11 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-11-18 14:30:11 +0000 |
commit | b22cb713de68169f4b0b6b9099df0fe5aec30de6 (patch) | |
tree | 91032ceec9111915cb0f1dc35d2d20630c0dc67c | |
parent | ddfa0a74eae27b6f03c24a00186d80251eec965b (diff) |
it's oupsa oupsa oupsa time...
writing to a member of a const struct is no good, so un-const struct peer
for log_statechange()
-rw-r--r-- | usr.sbin/bgpd/log.c | 4 | ||||
-rw-r--r-- | usr.sbin/bgpd/session.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/log.c b/usr.sbin/bgpd/log.c index bfa14db69d7..e411a25f7b0 100644 --- a/usr.sbin/bgpd/log.c +++ b/usr.sbin/bgpd/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.41 2004/11/18 14:10:36 henning Exp $ */ +/* $OpenBSD: log.c,v 1.42 2004/11/18 14:30:10 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -245,7 +245,7 @@ fatal_ensure(const char *file, int line, const char *cond) } void -log_statechange(const struct peer *peer, enum session_state nstate, +log_statechange(struct peer *peer, enum session_state nstate, enum session_events event) { char *p; diff --git a/usr.sbin/bgpd/session.h b/usr.sbin/bgpd/session.h index 4b6e8fe149c..2eb27b72ebb 100644 --- a/usr.sbin/bgpd/session.h +++ b/usr.sbin/bgpd/session.h @@ -1,4 +1,4 @@ -/* $OpenBSD: session.h,v 1.66 2004/11/18 14:10:36 henning Exp $ */ +/* $OpenBSD: session.h,v 1.67 2004/11/18 14:30:10 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -199,7 +199,7 @@ int imsg_compose_parent(int, pid_t, void *, u_int16_t); int imsg_compose_rde(int, pid_t, void *, u_int16_t); /* log.c */ -void log_statechange(const struct peer *, enum session_state, +void log_statechange(struct peer *, enum session_state, enum session_events); void log_notification(const struct peer *, u_int8_t, u_int8_t, u_char *, u_int16_t); |