components/trousers/patches/tcsd_tcsd_threads.c.patch
author Vladimir Marek <Vladimir.Marek@oracle.com>
Tue, 19 Jul 2016 15:22:15 +0200
changeset 6442 f900f128dbb9
parent 5941 db8aa9865e9f
permissions -rw-r--r--
23856628 problem in UTILITY/PERL

# Fix compiler warnings with type casting.
# Suitable for use upstream.
# This change was implemented in-house.
#
--- src/tcsd/tcsd_threads.c	2010-09-10 12:50:27.000000000 -0700
+++ src/tcsd/tcsd_threads.c	2012-04-23 14:27:25.589107000 -0700
@@ -185,13 +185,13 @@
 
 	if ((rc = sigfillset(&thread_sigmask))) {
 		LogError("sigfillset failed: error=%d: %s", rc, strerror(rc));
-		LogError("worker thread %ld is exiting prematurely", THREAD_ID);
+		LogError("worker thread %lu is exiting prematurely", (unsigned long)THREAD_ID);
 		THREAD_EXIT(NULL);
 	}
 
 	if ((rc = THREAD_SET_SIGNAL_MASK(SIG_BLOCK, &thread_sigmask, NULL))) {
 		LogError("Setting thread sigmask failed: error=%d: %s", rc, strerror(rc));
-		LogError("worker thread %ld is exiting prematurely", THREAD_ID);
+		LogError("worker thread %lu is exiting prematurely", (unsigned long)THREAD_ID);
 		THREAD_EXIT(NULL);
 	}
 }