# 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 @@ -186,13 +186,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); } }