Whamcloud - gitweb
Branch b1_6
authoradilger <adilger>
Fri, 1 Jun 2007 06:13:24 +0000 (06:13 +0000)
committeradilger <adilger>
Fri, 1 Jun 2007 06:13:24 +0000 (06:13 +0000)
Don't actually need a cast for this.

lustre/utils/liblustreapi.c

index 7fafd6f..fa65c1e 100644 (file)
@@ -198,7 +198,7 @@ int llapi_lov_get_uuids(int fd, struct obd_uuid *uuidp, int *ost_count)
         }
 
         while ((fgets(buf, sizeof(buf), fp) != NULL) && index < *ost_count) {
-                if (sscanf(buf, "%d: %s", &index, (char *)&uuidp[index].uuid)<2)
+                if (sscanf(buf, "%d: %s", &index, uuidp[index].uuid) < 2)
                         break;
                 index++;
         }