DEBUG ("In part_add_partition: device_file=%s, start=%lld, size=%lld, type=%s", device_file, start, size, type);
}
- scheme = PART_TYPE_UNKNOWN;
+ scheme = -1;
if (is_change)
{
PartitionTable *p;
/* now that we know the partitoning scheme, sanity check type and flags */
switch (scheme)
{
- case PART_TYPE_UNKNOWN:
+ case -1:
/* unknown partition table format; error out if any type, label or flags are given */
if ((flags != NULL && flags[0] != NULL))
{
/* Partition schemes understood by this library */
typedef enum
{
- PART_TYPE_UNKNOWN = -1,
PART_TYPE_MSDOS = 0,
PART_TYPE_MSDOS_EXTENDED = 1,
PART_TYPE_APPLE = 2,