Port to MinGW

Compile-tested only.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
This commit is contained in:
Bart Van Assche
2021-05-23 12:13:59 -07:00
parent ca9c585ef6
commit 70759869ff
5 changed files with 22 additions and 17 deletions

View File

@@ -293,7 +293,8 @@ iscsi_create_context(const char *initiator_name)
while (iscsi->smalloc_size < required) {
iscsi->smalloc_size <<= 1;
}
ISCSI_LOG(iscsi,5,"small allocation size is %zu byte", iscsi->smalloc_size);
ISCSI_LOG(iscsi, 5, "small allocation size is %u byte",
(uint32_t)iscsi->smalloc_size);
ca = getenv("LIBISCSI_CACHE_ALLOCATIONS");
if (!ca || atoi(ca) != 0) {