DAV_ERR_LOCK_CORRUPT_DB,
apr_psprintf(p,
"The lock database was found to "
- "be corrupt. offset %i, c=%02x",
+ "be corrupt. offset %"
+ APR_SIZE_T_FMT ", c=%02x",
offset, val.dptr[offset]));
}
}
|| amt != pbuf->cur_len) {
err = dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, 0,
apr_psprintf(p,
- "Error writing %i bytes to %s",
+ "Error writing %" APR_SIZE_T_FMT
+ " bytes to %s",
pbuf->cur_len, pathname));
}
}
else {
time_t now = time(NULL);
- sprintf(tmp, "Second-%lu", lock->timeout - now);
+ sprintf(tmp, "Second-%lu", (long unsigned int)(lock->timeout - now));
dav_buffer_append(p, pbuf, tmp);
}