summaryrefslogtreecommitdiff
path: root/xs_socket.h
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-10-08 07:00:05 +0200
committerdefault <nobody@localhost>2022-10-08 07:00:05 +0200
commit0f4779e2a095b72b7ec7fc0f2abe2cc57f152b76 (patch)
treed9b945a8c84ba1441ad1563a78259e6ae95e4c1a /xs_socket.h
parent29a0b21929495b04e81085f1502a4498c728fb84 (diff)
Backport from xs.
Diffstat (limited to 'xs_socket.h')
-rw-r--r--xs_socket.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xs_socket.h b/xs_socket.h
index a3fe6a4..d2853a2 100644
--- a/xs_socket.h
+++ b/xs_socket.h
@@ -5,7 +5,7 @@
#define _XS_SOCKET_H
int xs_socket_timeout(int s, double rto, double sto);
-int xs_socket_server(char *addr, int port);
+int xs_socket_server(const char *addr, int port);
FILE *xs_socket_accept(int rs);
@@ -40,7 +40,7 @@ int xs_socket_timeout(int s, double rto, double sto)
}
-int xs_socket_server(char *addr, int port)
+int xs_socket_server(const char *addr, int port)
/* opens a server socket */
{
int rs = -1;