diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-12 15:12:08 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-12 15:12:08 +0000 |
commit | 4309d65475d2b5ad4e00a9c590a2e97c1c90ca16 (patch) | |
tree | 29f1cf14959e783e68373dae70ff1e0f9170530b /server.c | |
parent | e4a6cdefda66dbc7b4cab944975e5d9053e3f862 (diff) | |
download | rtmux-4309d65475d2b5ad4e00a9c590a2e97c1c90ca16.tar.gz rtmux-4309d65475d2b5ad4e00a9c590a2e97c1c90ca16.tar.bz2 rtmux-4309d65475d2b5ad4e00a9c590a2e97c1c90ca16.zip |
realpath the socket path; also sprinkle some const.
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.37 2007-10-31 14:26:26 nicm Exp $ */ +/* $Id: server.c,v 1.38 2007-11-12 15:12:08 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -43,7 +43,7 @@ /* Client list. */ struct clients clients; -int server_main(char *, int); +int server_main(const char *, int); void server_fill_windows(struct pollfd **); void server_handle_windows(struct pollfd **); void server_fill_clients(struct pollfd **); @@ -55,7 +55,7 @@ void server_lost_window(struct window *); /* Fork new server. */ int -server_start(char *path) +server_start(const char *path) { struct sockaddr_un sa; size_t size; @@ -122,7 +122,7 @@ server_start(char *path) /* Main server loop. */ int -server_main(char *srv_path, int srv_fd) +server_main(const char *srv_path, int srv_fd) { struct pollfd *pfds, *pfd; int nfds; |