summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authornicm <nicm>2015-11-24 22:27:22 +0000
committernicm <nicm>2015-11-24 22:27:22 +0000
commitc913fb99b6f0f7d08b77d8d021df7d7fa27f82d0 (patch)
treed9b0d5ab77c55306a63e785bb3be533cd5baa072 /client.c
parent8976dac9e0c2e55b240ad55f4f7fa0a3b887c0e2 (diff)
Tidy the code that works out the socket path, and just use the full path
in the global socket_path rather than copying it.
Diffstat (limited to 'client.c')
-rw-r--r--client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client.c b/client.c
index fcb704fb..595aff9b 100644
--- a/client.c
+++ b/client.c
@@ -55,7 +55,7 @@ int client_attached;
__dead void client_exec(const char *);
int client_get_lock(char *);
-int client_connect(struct event_base *, char *, int);
+int client_connect(struct event_base *, const char *, int);
void client_send_identify(const char *, const char *);
void client_stdin_callback(int, short, void *);
void client_write(int, const char *, size_t);
@@ -96,7 +96,7 @@ client_get_lock(char *lockfile)
/* Connect client to server. */
int
-client_connect(struct event_base *base, char *path, int start_server)
+client_connect(struct event_base *base, const char *path, int start_server)
{
struct sockaddr_un sa;
size_t size;