summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2020-12-11 13:18:13 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2020-12-11 13:18:13 +0000
commit6e485846fbe4fb644483e7668166104ce116ea87 (patch)
tree0618f5e579b934ce08b5c4ee638c84460073107e /sbin
parentade7de58909140e0d12ab22adb13538f4ebc2777 (diff)
Sprinkle in some static to prevent missing prototype warnings; merged
upstream.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/unwind/libunbound/util/netevent.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/unwind/libunbound/util/netevent.c b/sbin/unwind/libunbound/util/netevent.c
index 8bbad15920a..0bed97f62f5 100644
--- a/sbin/unwind/libunbound/util/netevent.c
+++ b/sbin/unwind/libunbound/util/netevent.c
@@ -2437,7 +2437,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) {
@@ -2451,7 +2451,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)
@@ -2527,7 +2527,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)