Fixed two more compiler warnings.
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 1 Apr 2010 10:53:41 +0000 (10:53 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 1 Apr 2010 10:53:41 +0000 (10:53 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1576 d57e44dd-8a1f-0410-8b47-8ef2f437770f

iscsi-scst/kernel/config.c
scst/src/dev_handlers/scst_vdisk.c

index c940174..28a16ca 100644 (file)
@@ -695,7 +695,7 @@ int iscsi_add_attr(struct iscsi_target *target,
 
        tgt_attr = kzalloc(sizeof(*tgt_attr), GFP_KERNEL);
        if (tgt_attr == NULL) {
-               PRINT_ERROR("Unable to allocate user (size %d)",
+               PRINT_ERROR("Unable to allocate user (size %zd)",
                        sizeof(*tgt_attr));
                res = -ENOMEM;
                goto out;
index 5e515cb..a591caf 100644 (file)
@@ -294,7 +294,7 @@ static ssize_t vdisk_add_blockio_device(const char *device_name, char *params);
 static ssize_t vdisk_add_nullio_device(const char *device_name, char *params);
 static ssize_t vdisk_del_device(const char *device_name);
 static ssize_t vcdrom_add_device(const char *device_name, char *params);
-static int vcdrom_del_device(const char *device_name);
+static ssize_t vcdrom_del_device(const char *device_name);
 #endif
 static int vdisk_task_mgmt_fn(struct scst_mgmt_cmd *mcmd,
        struct scst_tgt_dev *tgt_dev);
@@ -3496,7 +3496,7 @@ out:
 
 }
 
-static int vcdrom_del_device(const char *device_name)
+static ssize_t vcdrom_del_device(const char *device_name)
 {
        int res = 0;
        struct scst_vdisk_dev *virt_dev;