all: fix build by clang (defines, warnings).

Conflicts:
	contrib/slapd-modules/usn/usn.c

Change-Id: I68572808e30a35fdd14aa0a459cfbb8da4be6dc5
This commit is contained in:
Leo Yuriev 2015-09-03 22:11:55 +03:00
parent fa0751771e
commit 4554b8f62c

10
mdb.c
View File

@ -9591,9 +9591,13 @@ mdb_reader_list(MDB_env *env, MDB_msg_func *func, void *ctx)
for (i=0; i<rdrs; i++) {
if (mr[i].mr_pid) {
txnid_t txnid = mr[i].mr_txnid;
sprintf(buf, txnid == (txnid_t)-1 ?
"%10d %zx -\n" : "%10d %zx %zu\n",
(int)mr[i].mr_pid, (size_t)mr[i].mr_tid, txnid);
if (txnid == (txnid_t)-1l)
sprintf(buf, "%10d %zx -\n",
(int) mr[i].mr_pid, (size_t) mr[i].mr_tid);
else
sprintf(buf, "%10d %zx %zu\n",
(int) mr[i].mr_pid, (size_t) mr[i].mr_tid, txnid);
if (first) {
first = 0;
rc = func(" pid thread txnid\n", ctx);