Make the argument to bufferevent_get_priority const

This commit is contained in:
Nick Mathewson 2012-11-18 19:32:11 -05:00
parent 96584866cd
commit 060c409e8b
2 changed files with 2 additions and 2 deletions

View File

@ -398,7 +398,7 @@ bufferevent_get_base(struct bufferevent *bufev)
} }
int int
bufferevent_get_priority(struct bufferevent *bufev) bufferevent_get_priority(const struct bufferevent *bufev)
{ {
if (event_initialized(&bufev->ev_read)) { if (event_initialized(&bufev->ev_read)) {
return event_get_priority(&bufev->ev_read); return event_get_priority(&bufev->ev_read);

View File

@ -278,7 +278,7 @@ int bufferevent_priority_set(struct bufferevent *bufev, int pri);
Only supported for socket bufferevents 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. Deallocate the storage associated with a bufferevent structure.