From 7f44580981d602e583828dd4e599c1e11824c742 Mon Sep 17 00:00:00 2001 From: Ian Silvester Date: Thu, 21 Jan 2016 13:02:10 +0000 Subject: [PATCH] Ameliorate a compiler warning. Though the value concerned might get truncated the effect is not serious. Still, no harm in avoiding the warning. --- errlog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/errlog.c b/errlog.c index f493ac6e..c54ec4cb 100644 --- a/errlog.c +++ b/errlog.c @@ -1,4 +1,4 @@ -const char errlog_rcs[] = "$Id: errlog.c,v 1.121 2014/06/03 10:24:00 fabiankeil Exp $"; +const char errlog_rcs[] = "$Id: errlog.c,v 1.122 2014/10/18 11:30:40 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/errlog.c,v $ @@ -426,7 +426,7 @@ static long get_thread_id(void) * pthread_t is supposed to be opaque... but it's fairly random, though, so * we make it mostly presentable. */ - this_thread = abs(this_thread % 1000); + this_thread = labs(this_thread % 1000); #endif /* def __MACH__ */ #elif defined(_WIN32) this_thread = GetCurrentThreadId(); -- 2.39.2