From a0fbfe1c6d6f42b4c2704c882beda1c4cafe5016 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 24 Oct 2017 11:27:44 +0200 Subject: [SERVER] Fix types or add explicit casts everywhere we might have type conversion problems --- src/server/integrity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/integrity.c') 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 ); -- cgit v1.2.3-55-g7522