]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Sprinkle in some static to prevent missing prototype warnings. 335/head
authorFlorian Obser <florian@narrans.de>
Wed, 28 Oct 2020 13:15:23 +0000 (14:15 +0100)
committerFlorian Obser <florian@narrans.de>
Wed, 28 Oct 2020 13:15:23 +0000 (14:15 +0100)
util/netevent.c

index 2428417fabc2133edb40a53ce97b07885fa9c422..974c59996b93270e14d3149f552bc7af148be1eb 100644 (file)
@@ -2248,7 +2248,7 @@ http_chunked_segment(struct comm_point* c)
 
 #ifdef HAVE_NGHTTP2
 /** Create new http2 session. Called when creating handling comm point. */
-struct http2_session* http2_session_create(struct comm_point* c)
+static struct http2_session* http2_session_create(struct comm_point* c)
 {
        struct http2_session* session = calloc(1, sizeof(*session));
        if(!session) {
@@ -2262,7 +2262,7 @@ struct http2_session* http2_session_create(struct comm_point* c)
 #endif
 
 /** Delete http2 session. After closing connection or on error */
-void http2_session_delete(struct http2_session* h2_session)
+static void http2_session_delete(struct http2_session* h2_session)
 {
 #ifdef HAVE_NGHTTP2
        if(h2_session->callbacks)
@@ -2338,7 +2338,7 @@ void http2_session_add_stream(struct http2_session* h2_session,
 
 /** remove stream from session linked list. After stream close callback or
  * closing connection */
-void http2_session_remove_stream(struct http2_session* h2_session,
+static void http2_session_remove_stream(struct http2_session* h2_session,
        struct http2_stream* h2_stream)
 {
        if(h2_stream->prev)