diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2012-06-10 23:47:08 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2012-06-10 23:47:08 -0700 |
commit | 856783ba95e46561ee1776a22b03900e7f0e7286 (patch) | |
tree | 36b1b5a054707b3db3b446fbd13401cf78793f3f /sesman/thread.c | |
parent | 099a421c7706ea5d7706890d7a3f12a4ccf7c126 (diff) | |
download | xrdp-proprietary-856783ba95e46561ee1776a22b03900e7f0e7286.tar.gz xrdp-proprietary-856783ba95e46561ee1776a22b03900e7f0e7286.zip |
no logic changes, remove warnings and coding style changes
Diffstat (limited to 'sesman/thread.c')
-rw-r--r-- | sesman/thread.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sesman/thread.c b/sesman/thread.c index 4c266637..98a92533 100644 --- a/sesman/thread.c +++ b/sesman/thread.c @@ -22,7 +22,7 @@ * @file thread.c * @brief thread stuff... * @author Simone Fedele - * + * */ #include "sesman.h" @@ -100,13 +100,13 @@ thread_session_update_start(void) int ret; //starts the session update thread //that checks for idle time, destroys sessions, ecc... - -#warning this thread should always request lock_fork before read or write + +#warning this thread should always request lock_fork before read or write #warning (so we can Fork() In Peace) ret = pthread_create(&g_thread_updater, NULL, , ""); pthread_detach(g_thread_updater); - if (ret==0) + if (ret == 0) { log_message(&(g_cfg->log), LOG_LEVEL_INFO, "session update thread started successfully"); return 0; @@ -148,7 +148,7 @@ thread_scp_start(int skt) //ret = pthread_create(&th, NULL, scp_process_start, (void*) (&g_thread_sck)); pthread_detach(th); - if (ret == 0) + if (ret == 0) { log_message(LOG_LEVEL_INFO, "scp thread on sck %d started successfully", skt); return 0; @@ -172,4 +172,3 @@ thread_scp_start(int skt) return 1; } - |