diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-03-04 08:32:45 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-03-04 08:33:29 -0800 |
commit | a32a39a344b069dadae76a3a2de3887edfe30e72 (patch) | |
tree | bdef324f472a15988c4c36e0f0aa8b3805057a84 | |
parent | a4c7c97ed95a884ccf99cf8b3e0dfff715ef100a (diff) | |
download | txr-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.c | 2 | ||||
-rw-r--r-- | stream.h | 3 |
2 files changed, 1 insertions, 4 deletions
@@ -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); @@ -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); |