Cleanups
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Fri, 6 Feb 2009 19:46:57 +0000 (19:46 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Fri, 6 Feb 2009 19:46:57 +0000 (19:46 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@666 d57e44dd-8a1f-0410-8b47-8ef2f437770f

usr/fileio/common.c
usr/fileio/fileio.c

index c5d4ef3..67619d7 100644 (file)
@@ -910,7 +910,7 @@ uint64_t gen_dev_id_num(const struct vdisk_dev *dev)
 {
        unsigned int dev_id_num, i;
 
-       for (dev_id_num = 0, i = 0; i < (int)strlen(dev->name); i++) {
+       for (dev_id_num = 0, i = 0; i < strlen(dev->name); i++) {
                unsigned int rv = random_values[(int)(dev->name[i])];
                /* do some rotating of the bits */
                dev_id_num ^= ((rv << i) | (rv >> (32 - i)));
index b6d7840..b04cbf8 100644 (file)
@@ -171,8 +171,7 @@ void sigalrm_handler(int signo)
        res = ioctl(dev.scst_usr_fd, SCST_USER_FLUSH_CACHE, NULL);
        if (res != 0) {
                res = errno;
-               PRINT_ERROR("Unable to flush cache: %s",
-                       strerror(res));
+               PRINT_ERROR("Unable to flush cache: %s", strerror(res));
                goto out;
        }