]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8350 #resolve return value of SetPriorityClass() so windows build does not complai...
authorKen Rice <krice@freeswitch.org>
Thu, 15 Oct 2015 18:31:12 +0000 (13:31 -0500)
committerKen Rice <krice@freeswitch.org>
Thu, 15 Oct 2015 18:31:25 +0000 (13:31 -0500)
this also addresses as similar condition in set_low_priority() where if windows it always returns 0

src/switch_core.c

index 7e79a92f42e8d792e35745c897c6e1f46c53d7ec..dfef15482c4d8e4d95d25bfba69a32f0438230e7 100644 (file)
@@ -928,7 +928,7 @@ SWITCH_DECLARE(int32_t) switch_core_set_process_privileges(void)
 SWITCH_DECLARE(int32_t) set_low_priority(void)
 {
 #ifdef WIN32
-       SetPriorityClass(GetCurrentProcess(), BELOW_NORMAL_PRIORITY_CLASS);
+       return SetPriorityClass(GetCurrentProcess(), BELOW_NORMAL_PRIORITY_CLASS);
 #else
 #if defined(USE_SCHED_SETSCHEDULER) && ! defined(SOLARIS_PRIVILEGES)
        /*
@@ -964,7 +964,7 @@ SWITCH_DECLARE(int32_t) set_low_priority(void)
 SWITCH_DECLARE(int32_t) set_realtime_priority(void)
 {
 #ifdef WIN32
-       SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS);
+       return SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS);
 #else
 #ifdef USE_SCHED_SETSCHEDULER
        /*