From 174a99f4864745cd995e5983cb95b8c7091d0725 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 15 Mar 2013 09:52:13 +1100 Subject: dbwrap: Cast getpid() result to unsigned int for GNU/Solaris build Reviewed-by: Jeremy Allison --- source3/utils/dbwrap_torture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/utils') diff --git a/source3/utils/dbwrap_torture.c b/source3/utils/dbwrap_torture.c index 9ece297288..2741820aec 100644 --- a/source3/utils/dbwrap_torture.c +++ b/source3/utils/dbwrap_torture.c @@ -57,7 +57,7 @@ static void print_counters(void) int i; uint32_t *old_counters; - printf("[%4u] Counters: ", getpid()); + printf("[%4u] Counters: ", (unsigned int)getpid()); old_counters = (uint32_t *)old_data.dptr; for (i=0; i < old_data.dsize/sizeof(uint32_t); i++) { printf("%6u ", old_counters[i]); @@ -89,7 +89,7 @@ static bool check_counters(struct db_context *db, TDB_DATA data) for (i=0; i < old_data.dsize/sizeof(uint32_t); i++) { if (counters[i] < old_counters[i]) { printf("[%4u] ERROR: counters has decreased for node %u From %u to %u\n", - getpid(), i, old_counters[i], counters[i]); + (unsigned int)getpid(), i, old_counters[i], counters[i]); success = false; return false; } -- cgit