Signed-off-by: Karel Zak <kzak@redhat.com>
lb->flags |= FDISK_LABEL_FL_INCHARS_PARTNO;
lb->flags |= FDISK_LABEL_FL_REQUIRE_GEOMETRY;
- return lb;
+ /* return calloc() result to keep static anaylizers happy */
+ return (struct fdisk_label *) bsd;
}
lb->geom_max.heads = 255;
lb->geom_max.cylinders = 1048576;
- return lb;
+ /* return calloc() result to keep static anaylizers happy */
+ return (struct fdisk_label *) dos;
}
/**
lb->fields = gpt_fields;
lb->nfields = ARRAY_SIZE(gpt_fields);
- return lb;
+ /* return calloc() result to keep static anaylizers happy */
+ return (struct fdisk_label *) gpt;
}
/**
lb->flags |= FDISK_LABEL_FL_REQUIRE_GEOMETRY;
- return lb;
+ /* return calloc() result to keep static anaylizers happy */
+ return (struct fdisk_label *) sgi;
}
lb->geom_max.sectors = 1024;
lb->geom_max.heads = 1024;
lb->geom_max.cylinders = USHRT_MAX;
- return lb;
+
+ /* return calloc() result to keep static anaylizers happy */
+ return (struct fdisk_label *) sun;
}