From a32a39a344b069dadae76a3a2de3887edfe30e72 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 4 Mar 2016 08:32:45 -0800 Subject: Make make_sock_stream static in stream.c. * stream.c (make_sock_stream): External function becomes static; it is not used outside of this source file. * stream.h (make_sock_stream): Declaration removed. --- stream.c | 2 +- stream.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/stream.c b/stream.c index 012b5c55..f6bff498 100644 --- a/stream.c +++ b/stream.c @@ -1167,7 +1167,7 @@ val make_pipe_stream(FILE *f, val descr) } #if HAVE_SOCKETS -val make_sock_stream(FILE *f, val family, val type) +static val make_sock_stream(FILE *f, val family, val type) { val s = make_stdio_stream_common(f, lit("socket"), &stdio_ops.cobj_ops); struct stdio_handle *h = coerce(struct stdio_handle *, s->co.handle); diff --git a/stream.h b/stream.h index 148e6950..c7e70c12 100644 --- a/stream.h +++ b/stream.h @@ -110,9 +110,6 @@ val make_null_stream(void); val make_stdio_stream(FILE *, val descr); val make_tail_stream(FILE *, val descr); val make_pipe_stream(FILE *, val descr); -#if HAVE_SOCKETS -val make_sock_stream(FILE *, val family, val type); -#endif val stream_fd(val stream); #if HAVE_SOCKETS val sock_family(val stream); -- cgit v1.2.3