summaryrefslogtreecommitdiff
path: root/lib/ntdb/lock.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-03-14 19:55:29 +1100
committerJeremy Allison <jra@samba.org>2013-03-15 10:38:25 -0700
commit346407443e6210da9c7335df7b898d96ff74c0e3 (patch)
treea4c9e7ef4c94d78cb6abeb85716be09d4d0a863f /lib/ntdb/lock.c
parent29dfc94ca312523c5682235f642fb49030abd995 (diff)
downloadsamba-346407443e6210da9c7335df7b898d96ff74c0e3.tar.gz
samba-346407443e6210da9c7335df7b898d96ff74c0e3.tar.bz2
samba-346407443e6210da9c7335df7b898d96ff74c0e3.zip
ntdb: Cast getpid() result to unsigned int for GNU/Solaris build
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/ntdb/lock.c')
-rw-r--r--lib/ntdb/lock.c6
1 files changed, 4 insertions, 2 deletions
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;
}