projects
/
guacd.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e244274
)
Use new form of guac_client_plugin_get_client().
author
Michael Jumper <zhangmaike@users.sourceforge.net>
Tue, 13 Mar 2012 22:53:08 +0000
(15:53 -0700)
committer
Michael Jumper <zhangmaike@users.sourceforge.net>
Tue, 13 Mar 2012 22:53:08 +0000
(15:53 -0700)
src/daemon.c
patch
|
blob
|
history
diff --git
a/src/daemon.c
b/src/daemon.c
index
a0ba7f8
..
0f692d2
100644
(file)
--- a/
src/daemon.c
+++ b/
src/daemon.c
@@
-137,7
+137,9
@@
void guacd_handle_connection(int fd) {
/* Load and init client */
client = guac_client_plugin_get_client(plugin, socket,
- connect->argc, connect->argv);
+ connect->argc, connect->argv,
+ guacd_log_info, guacd_log_error);
+
guac_instruction_free(connect);
if (client == NULL) {
@@
-151,10
+153,6
@@
void guacd_handle_connection(int fd) {
return;
}
- /* Set up logging in client */
- client->log_info_handler = guacd_log_info;
- client->log_error_handler = guacd_log_error;
-
/* Start client threads */
syslog(LOG_INFO, "Starting client");
if (guacd_client_start(client))