summaryrefslogtreecommitdiffstats
path: root/src/server/integrity.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/integrity.c')
-rw-r--r--src/server/integrity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/integrity.c b/src/server/integrity.c
index 1216947..e07a076 100644
--- a/src/server/integrity.c
+++ b/src/server/integrity.c
@@ -102,7 +102,7 @@ static void* integrity_main(void * data UNUSED)
// Setting nice of this thread - this is not POSIX conforming, so check if other platforms support this.
// POSIX says that setpriority() should set the nice value of all threads belonging to the current process,
// but on linux you can do this per thread.
- pid_t tid = syscall( SYS_gettid );
+ pid_t tid = (pid_t)syscall( SYS_gettid );
setpriority( PRIO_PROCESS, tid, 10 );
#endif
pthread_mutex_lock( &integrityQueueLock );