FS-8350 #resolve return value of SetPriorityClass() so windows build does not complain about warnings as errors on switch_core.c in set_realtime_priority()

this also addresses as similar condition in set_low_priority() where if windows it always returns 0
This commit is contained in:
Ken Rice 2015-10-15 13:31:12 -05:00
parent 79933d30b2
commit 7b8ff86083
1 changed files with 2 additions and 2 deletions

View 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
/*