From 060c409e8b5eafb56e32b943afcaa8e55a5c6559 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 18 Nov 2012 19:32:11 -0500 Subject: [PATCH] Make the argument to bufferevent_get_priority const --- bufferevent.c | 2 +- include/event2/bufferevent.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bufferevent.c b/bufferevent.c index 98003ac7..7c03ce90 100644 --- a/bufferevent.c +++ b/bufferevent.c @@ -398,7 +398,7 @@ bufferevent_get_base(struct bufferevent *bufev) } int -bufferevent_get_priority(struct bufferevent *bufev) +bufferevent_get_priority(const struct bufferevent *bufev) { if (event_initialized(&bufev->ev_read)) { return event_get_priority(&bufev->ev_read); diff --git a/include/event2/bufferevent.h b/include/event2/bufferevent.h index 0d94e8d1..4ed4e5d1 100644 --- a/include/event2/bufferevent.h +++ b/include/event2/bufferevent.h @@ -278,7 +278,7 @@ int bufferevent_priority_set(struct bufferevent *bufev, int pri); Only supported for socket bufferevents */ -int bufferevent_get_priority(struct bufferevent *bufev); +int bufferevent_get_priority(const struct bufferevent *bufev); /** Deallocate the storage associated with a bufferevent structure. -- 2.40.0