summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-03-04 08:32:45 -0800
committerKaz Kylheku <kaz@kylheku.com>2016-03-04 08:33:29 -0800
commita32a39a344b069dadae76a3a2de3887edfe30e72 (patch)
treebdef324f472a15988c4c36e0f0aa8b3805057a84
parenta4c7c97ed95a884ccf99cf8b3e0dfff715ef100a (diff)
downloadtxr-a32a39a344b069dadae76a3a2de3887edfe30e72.tar.gz
txr-a32a39a344b069dadae76a3a2de3887edfe30e72.tar.bz2
txr-a32a39a344b069dadae76a3a2de3887edfe30e72.zip
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.
-rw-r--r--stream.c2
-rw-r--r--stream.h3
2 files changed, 1 insertions, 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);