diff options
author | Andrew Bartlett <abartlet@samba.org> | 2013-03-15 09:52:13 +1100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-03-15 10:38:54 -0700 |
commit | 174a99f4864745cd995e5983cb95b8c7091d0725 (patch) | |
tree | 4db71b140380f44637bce53bc82e7439de26dd68 /source3/utils | |
parent | cdc062273ce580877fd47e3f328d24c624dfbc0f (diff) | |
download | samba-174a99f4864745cd995e5983cb95b8c7091d0725.tar.gz samba-174a99f4864745cd995e5983cb95b8c7091d0725.tar.bz2 samba-174a99f4864745cd995e5983cb95b8c7091d0725.zip |
dbwrap: Cast getpid() result to unsigned int for GNU/Solaris build
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/dbwrap_torture.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |