Whamcloud - gitweb
Branch HEAD
authoradilger <adilger>
Thu, 10 May 2007 03:41:20 +0000 (03:41 +0000)
committeradilger <adilger>
Thu, 10 May 2007 03:41:20 +0000 (03:41 +0000)
Quiet compiler warning.
b=11757

lustre/utils/liblustreapi.c

index 0ea4b93..da0c472 100644 (file)
@@ -202,7 +202,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, &uuidp[index]) < 2)
+                if (sscanf(buf, "%d: %s", &index, (char *)&uuidp[index].uuid)<2)
                         break;
                 index++;
         }