From b22cb713de68169f4b0b6b9099df0fe5aec30de6 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Thu, 18 Nov 2004 14:30:11 +0000 Subject: 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() --- usr.sbin/bgpd/log.c | 4 ++-- 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 @@ -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 @@ -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); -- cgit v1.2.3