mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Make the argument to bufferevent_get_priority const
This commit is contained in:
parent
96584866cd
commit
060c409e8b
@ -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);
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user