From: Florian Obser Date: Wed, 28 Oct 2020 13:15:23 +0000 (+0100) Subject: Sprinkle in some static to prevent missing prototype warnings. X-Git-Tag: release-1.13.1rc1~49^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fb65e2b9edbcf6c739686710a3347de3cd890b1;p=thirdparty%2Funbound.git Sprinkle in some static to prevent missing prototype warnings. --- diff --git a/util/netevent.c b/util/netevent.c index 2428417fa..974c59996 100644 --- a/util/netevent.c +++ b/util/netevent.c @@ -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)