diff options
author | E. Westbrook <github@westbrook.io> | 2019-02-25 16:01:33 -0700 |
---|---|---|
committer | E. Westbrook <github@westbrook.io> | 2019-02-25 16:01:33 -0700 |
commit | 678d558c5f5db9af64d33ae78c37056a44848b4c (patch) | |
tree | 5c04af0fd7778ff857a4b2c995e1b20a83b6e4c0 /src | |
parent | 30a0a6003b3150af8b317cc8e39ebfa43636e2d0 (diff) | |
download | luasocket-678d558c5f5db9af64d33ae78c37056a44848b4c.tar.gz luasocket-678d558c5f5db9af64d33ae78c37056a44848b4c.tar.bz2 luasocket-678d558c5f5db9af64d33ae78c37056a44848b4c.zip |
unixdgram.c: use LUASOCKET_PRIVATE
Diffstat (limited to 'src')
-rw-r--r-- | src/unixdgram.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/unixdgram.c b/src/unixdgram.c index 0d6f18c..840257a 100644 --- a/src/unixdgram.c +++ b/src/unixdgram.c | |||
@@ -2,8 +2,7 @@ | |||
2 | * Unix domain socket dgram submodule | 2 | * Unix domain socket dgram submodule |
3 | * LuaSocket toolkit | 3 | * LuaSocket toolkit |
4 | \*=========================================================================*/ | 4 | \*=========================================================================*/ |
5 | #include <string.h> | 5 | #include "luasocket.h" |
6 | #include <stdlib.h> | ||
7 | 6 | ||
8 | #include "lua.h" | 7 | #include "lua.h" |
9 | #include "lauxlib.h" | 8 | #include "lauxlib.h" |
@@ -13,6 +12,10 @@ | |||
13 | #include "socket.h" | 12 | #include "socket.h" |
14 | #include "options.h" | 13 | #include "options.h" |
15 | #include "unix.h" | 14 | #include "unix.h" |
15 | |||
16 | #include <string.h> | ||
17 | #include <stdlib.h> | ||
18 | |||
16 | #include <sys/un.h> | 19 | #include <sys/un.h> |
17 | 20 | ||
18 | #define UNIXDGRAM_DATAGRAMSIZE 8192 | 21 | #define UNIXDGRAM_DATAGRAMSIZE 8192 |
@@ -83,7 +86,7 @@ static luaL_Reg func[] = { | |||
83 | /*-------------------------------------------------------------------------*\ | 86 | /*-------------------------------------------------------------------------*\ |
84 | * Initializes module | 87 | * Initializes module |
85 | \*-------------------------------------------------------------------------*/ | 88 | \*-------------------------------------------------------------------------*/ |
86 | int unixdgram_open(lua_State *L) | 89 | LUASOCKET_PRIVATE int unixdgram_open(lua_State *L) |
87 | { | 90 | { |
88 | /* create classes */ | 91 | /* create classes */ |
89 | auxiliar_newclass(L, "unixdgram{connected}", unixdgram_methods); | 92 | auxiliar_newclass(L, "unixdgram{connected}", unixdgram_methods); |