]> granicus.if.org Git - libevent/commitdiff
Make the argument to bufferevent_get_priority const
authorNick Mathewson <nickm@torproject.org>
Mon, 19 Nov 2012 00:32:11 +0000 (19:32 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 19 Nov 2012 00:32:11 +0000 (19:32 -0500)
bufferevent.c
include/event2/bufferevent.h

index 98003ac794f3d2a949541ffee6d35683bbf844c2..7c03ce90799150f3ad8a2040369c62dd98beb1a8 100644 (file)
@@ -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);
index 0d94e8d1a9ea1b4386e8e3475c6124c6a1a537d9..4ed4e5d13dce6160118bd437b5a49ce0d052db58 100644 (file)
@@ -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.