diff --git a/lustre/utils/liblustreapi.c b/lustre/utils/liblustreapi.c
index 7fafd6fc83eecbba6581ce87e2d84b4dade8a6ee..fa65c1ec38f2f71ebf7c8274c5cb8cd3bdc1e9da 100644
--- a/lustre/utils/liblustreapi.c
+++ b/lustre/utils/liblustreapi.c
@@ -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++;
         }