From 346407443e6210da9c7335df7b898d96ff74c0e3 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 14 Mar 2013 19:55:29 +1100 Subject: ntdb: Cast getpid() result to unsigned int for GNU/Solaris build Reviewed-by: Jeremy Allison --- lib/ntdb/lock.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/ntdb/lock.c') diff --git a/lib/ntdb/lock.c b/lib/ntdb/lock.c index 4517e25568..71d6d8525b 100644 --- a/lib/ntdb/lock.c +++ b/lib/ntdb/lock.c @@ -52,8 +52,10 @@ bool check_lock_pid(struct ntdb_context *ntdb, const char *call, bool log) if (log) { ntdb_logerr(ntdb, NTDB_ERR_LOCK, NTDB_LOG_USE_ERROR, - "%s: fork() detected after lock acquisition!" - " (%u vs %u)", call, ntdb->file->locker, getpid()); + "%s: fork() detected after lock acquisition!" + " (%u vs %u)", call, + (unsigned int)ntdb->file->locker, + (unsigned int)getpid()); } return false; } -- cgit