diff options
author | Simon Rettberg | 2017-10-24 11:27:44 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-10-24 11:27:44 +0200 |
commit | a0fbfe1c6d6f42b4c2704c882beda1c4cafe5016 (patch) | |
tree | 1a962a61adec6f3068cdba1e31129e14b5fada51 /src/server/integrity.c | |
parent | cmake: Move sample config to /etc/dnbd3-server aswell (diff) | |
download | dnbd3-a0fbfe1c6d6f42b4c2704c882beda1c4cafe5016.tar.gz dnbd3-a0fbfe1c6d6f42b4c2704c882beda1c4cafe5016.tar.xz dnbd3-a0fbfe1c6d6f42b4c2704c882beda1c4cafe5016.zip |
[SERVER] Fix types or add explicit casts everywhere we might have type conversion problems
Diffstat (limited to 'src/server/integrity.c')
-rw-r--r-- | src/server/integrity.c | 2 |
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 ); |