[EMAIL PROTECTED] wrote:
@@ -813,7 +813,7 @@
iov[0].iov_base = (void*)&disk_info;
iov[0].iov_len = sizeof(disk_cache_info_t);
- iov[1].iov_base = dobj->name;
+ iov[1].iov_base = (void*)dobj->name;
iov[1].iov_len = disk_info.name_len;
rv = apr_file_writev(dobj->hfd, (const struct iovec *) &iov, 2, &amt);
This isn't a problem with your change, since the cast to void * you
added is needed to remove the constness of dobj->name, but why is
&disk_info being cast? Any non-const pointer should automatically be
converted to a void pointer, so that cast can probably be dropped.
-garrett