mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 18:34:12 +08:00
all: fix build by clang (defines, warnings).
Conflicts: contrib/slapd-modules/usn/usn.c Change-Id: I68572808e30a35fdd14aa0a459cfbb8da4be6dc5
This commit is contained in:
parent
fa0751771e
commit
4554b8f62c
10
mdb.c
10
mdb.c
@ -9591,9 +9591,13 @@ mdb_reader_list(MDB_env *env, MDB_msg_func *func, void *ctx)
|
|||||||
for (i=0; i<rdrs; i++) {
|
for (i=0; i<rdrs; i++) {
|
||||||
if (mr[i].mr_pid) {
|
if (mr[i].mr_pid) {
|
||||||
txnid_t txnid = mr[i].mr_txnid;
|
txnid_t txnid = mr[i].mr_txnid;
|
||||||
sprintf(buf, txnid == (txnid_t)-1 ?
|
if (txnid == (txnid_t)-1l)
|
||||||
"%10d %zx -\n" : "%10d %zx %zu\n",
|
sprintf(buf, "%10d %zx -\n",
|
||||||
(int)mr[i].mr_pid, (size_t)mr[i].mr_tid, txnid);
|
(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) {
|
if (first) {
|
||||||
first = 0;
|
first = 0;
|
||||||
rc = func(" pid thread txnid\n", ctx);
|
rc = func(" pid thread txnid\n", ctx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user