mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 04:50:37 -04: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
|
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);
|
||||||
|
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user