diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-03 10:18:32 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-03 10:18:32 +0000 |
commit | 9bb907f2a72721f7da4e67365d0ed6765f945006 (patch) | |
tree | cae5422b90725e9c7004801998284b96a3067baf /local.c | |
parent | 7ccdbf392d87fc7ad9e79dc5a642c415386a72aa (diff) | |
download | rtmux-9bb907f2a72721f7da4e67365d0ed6765f945006.tar.gz rtmux-9bb907f2a72721f7da4e67365d0ed6765f945006.tar.bz2 rtmux-9bb907f2a72721f7da4e67365d0ed6765f945006.zip |
Move command handling into the server and tidy up some bits.
Diffstat (limited to 'local.c')
-rw-r--r-- | local.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -1,4 +1,4 @@ -/* $Id: local.c,v 1.13 2007-10-02 15:13:59 nicm Exp $ */ +/* $Id: local.c,v 1.14 2007-10-03 10:18:32 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -349,7 +349,7 @@ local_putp(const char *s) /* Return waiting keys if any. */ int -local_key(size_t *used) +local_key(void) { struct local_key *lk; u_int i; @@ -368,8 +368,6 @@ local_key(size_t *used) log_debug("got key: " "%s %d \"%s\"", lk->name, lk->code, lk->string); buffer_remove(local_in, lk->size); - if (used != NULL) - *used = lk->size; return (lk->code); } @@ -377,8 +375,6 @@ local_key(size_t *used) lk = local_keys + i; } - if (used != NULL) - *used = 1; return (input_extract8(local_in)); } |