From: adilger Date: Fri, 1 Jun 2007 06:13:24 +0000 (+0000) Subject: Branch b1_6 X-Git-Tag: v1_8_0_110~1555 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=1f4ad316b947bce01e13db0377d40bb06d552dfa;p=fs%2Flustre-release.git Branch b1_6 Don't actually need a cast for this. --- diff --git a/lustre/utils/liblustreapi.c b/lustre/utils/liblustreapi.c index 7fafd6f..fa65c1e 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++; }