diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2016-03-16 14:32:14 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2016-03-16 14:32:14 -0700 |
commit | 689ffe79d9c79edfce9e5da94d0c4723937df4e9 (patch) | |
tree | 3219eff84dd1df33822ed25c3cc22ee43e77751d /sesman/sesman.c | |
parent | 38241f2a0bd8909815cce67adb56d29619b19ad1 (diff) | |
download | xrdp-proprietary-689ffe79d9c79edfce9e5da94d0c4723937df4e9.tar.gz xrdp-proprietary-689ffe79d9c79edfce9e5da94d0c4723937df4e9.zip |
fix warnings, move some calls to os_calls
Diffstat (limited to 'sesman/sesman.c')
-rw-r--r-- | sesman/sesman.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sesman/sesman.c b/sesman/sesman.c index fe1f0952..88eeb346 100644 --- a/sesman/sesman.c +++ b/sesman/sesman.c @@ -136,7 +136,8 @@ int DEFAULT_CC main(int argc, char **argv) { int fd; - enum logReturns error; + enum logReturns log_error; + int error; int daemon = 1; int pid; char pid_s[32]; @@ -267,11 +268,11 @@ main(int argc, char **argv) g_snprintf(cfg_file, 255, "%s/sesman.ini", XRDP_CFG_PATH); /* starting logging subsystem */ - error = log_start(cfg_file, "xrdp-sesman"); + log_error = log_start(cfg_file, "xrdp-sesman"); - if (error != LOG_STARTUP_OK) + if (log_error != LOG_STARTUP_OK) { - switch (error) + switch (log_error) { case LOG_ERROR_MALLOC: g_writeln("error on malloc. cannot start logging. quitting."); |