diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2010-12-11 16:15:02 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2010-12-11 16:15:02 +0000 |
commit | 095ffe9cd1465b2eab2ae25f17453f531bf9598b (patch) | |
tree | 88ea936525b26e11a09e8455edf32eface53001f /server-client.c | |
parent | 1a4d78c7af5826e653ae1a3c010ef2171dcdb822 (diff) | |
download | rtmux-095ffe9cd1465b2eab2ae25f17453f531bf9598b.tar.gz rtmux-095ffe9cd1465b2eab2ae25f17453f531bf9598b.tar.bz2 rtmux-095ffe9cd1465b2eab2ae25f17453f531bf9598b.zip |
Make the prompt history global for all clients which is much more useful
than per-client history.
Diffstat (limited to 'server-client.c')
-rw-r--r-- | server-client.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/server-client.c b/server-client.c index e2624852..d98238e3 100644 --- a/server-client.c +++ b/server-client.c @@ -1,4 +1,4 @@ -/* $Id: server-client.c,v 1.45 2010-10-24 01:51:34 tcunha Exp $ */ +/* $Id: server-client.c,v 1.46 2010-12-11 16:15:02 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -69,8 +69,6 @@ server_client_create(int fd) fatal("gettimeofday failed"); memcpy(&c->activity_time, &c->creation_time, sizeof c->activity_time); - ARRAY_INIT(&c->prompt_hdata); - c->stdin_event = NULL; c->stdout_event = NULL; c->stderr_event = NULL; @@ -160,9 +158,6 @@ server_client_lost(struct client *c) xfree(c->prompt_string); if (c->prompt_buffer != NULL) xfree(c->prompt_buffer); - for (i = 0; i < ARRAY_LENGTH(&c->prompt_hdata); i++) - xfree(ARRAY_ITEM(&c->prompt_hdata, i)); - ARRAY_FREE(&c->prompt_hdata); if (c->cwd != NULL) xfree(c->cwd); |