aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorE. Westbrook <github@westbrook.io>2019-02-25 15:59:09 -0700
committerE. Westbrook <github@westbrook.io>2019-02-25 15:59:09 -0700
commit3f19a052e8f0c014365e9a07aaf82afd586f3ee1 (patch)
tree8df069a07ba69f294d3b7982fc51b1c4bf503de9 /src
parent731b23bc891fdf6136af7457972b8a8f8f1b55ec (diff)
downloadluasocket-3f19a052e8f0c014365e9a07aaf82afd586f3ee1.tar.gz
luasocket-3f19a052e8f0c014365e9a07aaf82afd586f3ee1.tar.bz2
luasocket-3f19a052e8f0c014365e9a07aaf82afd586f3ee1.zip
io.c: use LUASOCKET_PRIVATE
Diffstat (limited to 'src')
-rw-r--r--src/io.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/io.c b/src/io.c
index a4230ce..f1a2b9d 100644
--- a/src/io.c
+++ b/src/io.c
@@ -2,6 +2,7 @@
2* Input/Output abstraction 2* Input/Output abstraction
3* LuaSocket toolkit 3* LuaSocket toolkit
4\*=========================================================================*/ 4\*=========================================================================*/
5#include "luasocket.h"
5#include "io.h" 6#include "io.h"
6 7
7/*=========================================================================*\ 8/*=========================================================================*\
@@ -10,7 +11,7 @@
10/*-------------------------------------------------------------------------*\ 11/*-------------------------------------------------------------------------*\
11* Initializes C structure 12* Initializes C structure
12\*-------------------------------------------------------------------------*/ 13\*-------------------------------------------------------------------------*/
13void io_init(p_io io, p_send send, p_recv recv, p_error error, void *ctx) { 14LUASOCKET_PRIVATE void io_init(p_io io, p_send send, p_recv recv, p_error error, void *ctx) {
14 io->send = send; 15 io->send = send;
15 io->recv = recv; 16 io->recv = recv;
16 io->error = error; 17 io->error = error;
@@ -20,7 +21,7 @@ void io_init(p_io io, p_send send, p_recv recv, p_error error, void *ctx) {
20/*-------------------------------------------------------------------------*\ 21/*-------------------------------------------------------------------------*\
21* I/O error strings 22* I/O error strings
22\*-------------------------------------------------------------------------*/ 23\*-------------------------------------------------------------------------*/
23const char *io_strerror(int err) { 24LUASOCKET_PRIVATE const char *io_strerror(int err) {
24 switch (err) { 25 switch (err) {
25 case IO_DONE: return NULL; 26 case IO_DONE: return NULL;
26 case IO_CLOSED: return "closed"; 27 case IO_CLOSED: return "closed";