Missing pointer dereferencing.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14868 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2005-11-12 15:19:42 +00:00
parent bfe7d52d7b
commit e4a5c29b25
2 changed files with 2 additions and 2 deletions

View File

@ -556,7 +556,7 @@ cd_ioctl(cd_handle_info *handle, int op, void *buf, size_t len)
case B_GET_DEVICE_SIZE: case B_GET_DEVICE_SIZE:
res = update_capacity(device); res = update_capacity(device);
if (res == B_OK) if (res == B_OK)
(size_t *)buf = device->capacity * device->block_size; *(size_t *)buf = device->capacity * device->block_size;
break; break;
case B_GET_GEOMETRY: case B_GET_GEOMETRY:

View File

@ -193,7 +193,7 @@ das_ioctl(das_handle_info *handle, int op, void *buf, size_t len)
case B_GET_DEVICE_SIZE: case B_GET_DEVICE_SIZE:
res = update_capacity(device); res = update_capacity(device);
if (res == B_OK) if (res == B_OK)
(size_t *)buf = device->capacity * device->block_size; *(size_t *)buf = device->capacity * device->block_size;
break; break;
case B_GET_GEOMETRY: case B_GET_GEOMETRY: