diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-07-15 11:14:05 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2011-07-15 11:14:05 +0200 |
commit | 248b8f71e75a34c5ee35aad22ecf9953653eda95 (patch) | |
tree | dcc52a0e6955e2e752ccbe7cf087d73c98baad2d | |
parent | 39b256e9f11c5cc7115a214654fda8891bfb473f (diff) |
vdagentd: some small coding style fixes
-rw-r--r-- | src/vdagentd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vdagentd.c b/src/vdagentd.c index 3c05ef0..0cb7f1e 100644 --- a/src/vdagentd.c +++ b/src/vdagentd.c @@ -494,7 +494,7 @@ void agent_connect(struct udscs_connection *conn) { uint32_t pid; struct agent_data *agent_data; - + agent_data = calloc(1, sizeof(*agent_data)); if (!agent_data) { fprintf(logfile, "Out of memory allocating agent data, disconnecting\n"); @@ -506,9 +506,9 @@ void agent_connect(struct udscs_connection *conn) agent_data->session = console_kit_session_for_pid(console_kit, pid); #else session_count++; - if (session_count == 1) + if (session_count == 1) { active_session_conn = conn; - else { + } else { /* disable communication with agents when we've got multiple * connections to the vdagentd and no consolekit since we can't * know to which one we should send data @@ -517,8 +517,8 @@ void agent_connect(struct udscs_connection *conn) "disabling vdagent to avoid potential information leak\n"); active_session_conn = NULL; } - #endif + udscs_set_user_data(conn, (void *)agent_data); update_active_session_connection(); |