static void *_align(void *ptr, unsigned int align)
{
align--;
- return (void *) (((long) ptr + align) & ~align);
+ return (void *) (((unsigned long) ptr + align) & ~align);
}
static void *_add_target(struct target *t, void *out, void *end)
if (!(b = _add_target(t, b, e)))
goto bad;
+ fprintf(stderr, "dm_ioctl size = %lu\n", dmi->data_size);
+
return dmi;
bad:
switch (dmt->type) {
case DM_DEVICE_CREATE:
- _add_dev_node(dmt->dev_name, dmt->dmi->minor);
+ _add_dev_node(dmt->dev_name, dmi->minor);
break;
case DM_DEVICE_REMOVE: